gymni f
gymni f

Reputation: 408

Android manage long task

I need a way to plot realtime data on a graph without blocking the UI thread. Reading several posts and articles I have understood that threads aren't the best choice to perform long works (it's an indeterminate update so it could take more than 3-4 minutes). So, what should I use? Thank You in advance.

Upvotes: 1

Views: 41

Answers (1)

antonio
antonio

Reputation: 18242

If your long task will run while your Activity is running, then you can use an AsyncTask. Else you can use a Service

Upvotes: 1

Related Questions