Hello. I can use an ExecutorService, to send information to a database with volley, when the application has closed. I need it to send information to the database in the background..?
@@DailyCoding if I kill the application, will the ExecutorService continue sending information to the database or does the ExecutorService also stop...?
What's up, I consume many apis to populate my database and I use synchronize in each thread with AsyncTask, my question is how can I achieve it this way?
Hello.
I can use an ExecutorService, to send information to a database with volley, when the application has closed. I need it to send information to the database in the background..?
Yes, if the app is in the foreground we can use this. You can use this as an alternative of AsyncTask.
@@DailyCoding if I kill the application, will the ExecutorService continue sending information to the database or does the ExecutorService also stop...?
It will stop working
@@DailyCoding How can I make a process send information to the database after the application has been closed, I'm working with android 11
@@INDE-SOFT what about the Service? Use it.
How to perform all methods async task such as PreExecute(),doInBackground(),onProgress() and postExecute()
Great question but already made a separate video to answer this question. Check out the playlist or video description.
Terrific 👌😊
Thank you :)
Great video Yar
Thanks 🙏
What's up, I consume many apis to populate my database and I use synchronize in each thread with AsyncTask, my question is how can I achieve it this way?
Just place database or dao code inside the run method of the executor service.
Nice video!!!
Thanks 🙏
If we need to update more ui in main thread instead of handler and UI thread instead of that anything is available for update UI?
If you are doing long running work in the background then use ResultReceiver or Broadcast Receiver to update the UI.
Excellent ! specially with out using the library (Glid)
Glad you like it!