[android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Droid
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

Re: [android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Kostya Vasilyev
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,

Re: [android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Ralph Bergmann
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)