Android Question Threading in B4A

What do you need it for? In most cases there are simpler solutions.

Hi Erel,
There is multiple reasons why I need threading, for synchronizing data between devices using a web service, loading large files with a lot of separated data and for changing large amounts of data in my application. I have tried other solutions but due to the criteria of the project and the scale of the application, threading although maybe complicated is the best solution. I may also need threading in the future for other applications.
 
Last edited:
Upvote 0
for synchronizing data between devices using a web service,
This is handled by OkHttpUtils2. Adding another thread will not do anything useful.

loading large files with a lot of separated data
Use SQLite. The SQL library supports asynchronous access.

My recommendation is to avoid using the Threading library. It will make your application more complex and less reliable.
With that said you can use it. The error you encountered is discussed in the library forum thread.
 
Upvote 0
This is handled by OkHttpUtils2. Adding another thread will not do anything useful.


Use SQLite. The SQL library supports asynchronous access.

My recommendation is to avoid using the Threading library. It will make your application more complex and less reliable.
With that said you can use it. The error you encountered is discussed in the library forum thread.

I will have a look at them,
Thank You
 
Upvote 0
Back
Top