Based on a previous thread (https://www.b4x.com/android/forum/t...area-while-running-a-long-computation.133906/), I'm looking for the best way to handle long running tasks.
Putting Sleep calls here and there, while functional, looks like a way to somewhat putting something extraneous to the core algorithm you're going to implement.
Is there a way to run the code in a different thread, so the main one could handle the UI without hunging up?
Something akin to a Service module from B4A?
Putting Sleep calls here and there, while functional, looks like a way to somewhat putting something extraneous to the core algorithm you're going to implement.
Is there a way to run the code in a different thread, so the main one could handle the UI without hunging up?
Something akin to a Service module from B4A?