KZero Active Member Licensed User Longtime User Oct 24, 2014 #1 Hello, how to return a value from thread ? thanks in advance ?
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2014 #2 Are you using the Threading library? Why? Upvote 0
KZero Active Member Licensed User Longtime User Oct 24, 2014 #3 yes, i have string encryption function sometimes my app needs to call it many times and it makes the app UI slower while encrypting and decrypting so wanna know if its possible to make this function run in a separate thread Upvote 0
yes, i have string encryption function sometimes my app needs to call it many times and it makes the app UI slower while encrypting and decrypting so wanna know if its possible to make this function run in a separate thread
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2014 #4 You can use the Threading library to run a sub on a different thread. You can then use RunOnGUIThread to raise an event back to the main thread: http://www.b4x.com/android/help/threading.html#thread_runonguithread Upvote 0
You can use the Threading library to run a sub on a different thread. You can then use RunOnGUIThread to raise an event back to the main thread: http://www.b4x.com/android/help/threading.html#thread_runonguithread