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
Loading
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