On Wed, Aug 24, 2011 at 7:45 AM, pedramz <pedra...@gmail.com> wrote: > Regarding IntentService, what would be the advantage of using Intentservice > as opposed to AsyncTask? >
You said: I am using AsyncTask from a Service to Post a message to a server. > This is working fine except that we the task is done, my AsyncTask > thread is still in Running state. So you're using a Service already and then using an AsyncTask within that to do things off the main thread, but running into the problem of the Task staying in a running state. IntentService is a Service that does the work in a separate thread and stops itself when there's no more work to do. So it would seem much cleaner and simpler given your current situation, as I understand it. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en