[android-developers] Timing out an AsyncTask?

2010-04-09 Thread HippoMan
I know how to use AsyncTask in a standard manner to manage operations that are in the background in relation to a UI thread. However, I want to run a task in the background which might run for a very long time under certain circumstances. In these cases, I would like to force the background task

Re: [android-developers] Timing out an AsyncTask?

2010-04-09 Thread Romain Guy
AsyncTask was not designed for long running operations and should definitely not be used in the way you describe here. To cancel a task, just invoke cancel(). On Fri, Apr 9, 2010 at 10:50 AM, HippoMan hippo.mail...@gmail.com wrote: I know how to use AsyncTask in a standard manner to manage