An AsyncTask
is used to do some background computation and publish the result to the UI thread (with optional progress updates). Since you're not concerned with UI, then a Handler
or Thread
seems more appropriate.
You can spawn a background Thread
and pass messages back to your main thread by using the Handler
's post
method.