[android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread draf...@gmail.com
In my application I use an AsyncTask on start up of my Activity to fetch the ringtone of a particular contact. It works normally but I have noticed that if the application is stopped twice before the AsyncTask gets to the doInBackground method then when the Activity starts again the AsyncTask

Re: [android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Shawn Brown
Has anybody got any idea why this would be happening? Well... from http://brainflush.wordpress.com/2009/11/16/introducing-droid-fu-for-android-betteractivity-betterservice-and-betterasynctask/ So the basic idea is: launch an AsyncTask making your service call, show a nifty progress dialog

Re: [android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Donal Rafferty
Thanks for that Shawn, but I'm looking for a solution that doesn't involve external libraries. On Fri, Sep 10, 2010 at 10:45 AM, Shawn Brown big.coffee.lo...@gmail.comwrote: Has anybody got any idea why this would be happening? Well... from