Seems I can use an async task OR roll my own thread to do a background
task.
Is one better than the other?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To
07.05.2011 19:53, Droid пишет:
Seems I can use an async task OR roll my own thread to do a background
task.
Is one better than the other?
Not better, mostly just plug into the rest of your code somewhat
differently.
AsyncTask provides helpers methods, like onPreExecute, onProgressUpdate,
Am 07.05.11 17:53, schrieb Droid:
Is one better than the other?
yes, but it depends on what you want to do
if you only want a background task you can do it a thread. if your task
acts with the ui you can do it with both but it is easier with the
asynctask (your thread vs. ui thread)
3 matches
Mail list logo