[android-developers] Re: Help me on AsyncTask

2011-01-14 Thread Jimmy hautelook
I'm guessing that you've restarted your async task again when you clicked back. If your intention was to run it again, make sure you create a new instance every time. Each instance of AsyncTask can only be executed once. if you executed more than once, you'll get an exception. Example: # this

[android-developers] Re: Help me on AsyncTask

2011-01-04 Thread JonFHancock
I'm guessing it is in your logic. If the user is viewing a different Activity, then dialog.isShowing() is false, so when the ASyncTask finishes, it sees that the dialog is not showing, so doesn't close it. When the user switches back to the calling Activity, then they find the dialog still open w

[android-developers] Re: Help me on AsyncTask

2011-01-04 Thread Bob Kerns
Better yet -- use the debugger! On Jan 4, 6:48 am, MrChaz wrote: > If it's crashing then take a look at the exception that's logged it'll give > you a line number. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Re: Help me on AsyncTask

2011-01-04 Thread MrChaz
If it's crashing then take a look at the exception that's logged it'll give you a line number. -- 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 thi