To write a back ground functionality in an activity, should I use a thread or service?
Satheesh Reddy
Select an image from your device to upload
For background functionality in an activity, you should use a Service if the task needs to run independently of the activity’s lifecycle, and a Thread (or AsyncTask / Coroutine) if it only needs to run while the activity is active.web games