1
Reply

To write a back ground functionality in an activity, should I use a thread or service?

Satheesh Reddy

Satheesh Reddy

12y
2.3k
1
Reply

    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