[android-developers] problems with cancelling of BackgroundAsyncTask in Activity

2010-10-23 Thread chcat
I have activity class running infinite loop in BackgroundAsyncTask (see below) I have a problem trying to finish this activity, when i press btnClose the activity window disappears, but when i try to re-start this activity from Applications group i have null pointer exception

Re: [android-developers] problems with cancelling of BackgroundAsyncTask in Activity

2010-10-23 Thread Mark Murphy
On Sat, Oct 23, 2010 at 4:57 AM, chcat vlyamt...@gmail.com wrote: I have activity class running infinite loop in BackgroundAsyncTask The AsyncTask is designed for a task, something that will run for a short while and end. If you want a long-running background thread, I recommend you fork your