[android-developers] isFinishing() BadTokenException - very weird !!

2011-01-14 Thread Amico
hey, I have a very weird behaviour, which I cant find its cause. the last thing I do on onCreate() is to call a certain method. in that method i use **progressDialog = ProgressDialog.show(this, null, Registering with Moish'd! server, true, false);**. on the first run i get BadTokenException:

[android-developers] showDialog's BadTokenException + BACK button

2011-01-14 Thread Amico
hey, I know you've all had enough with this exception. there are trillions of threads in many forums about this exception (yes, 'm using this and not getApplicationContext() in showDialog) - but I couldnt find a single solution for that. if I run my code everything is OK. once I press the back

[android-developers] BadTokenException + BACK

2011-01-14 Thread Amico
I know this topic was asked trillions of times throughout the web, but there is no one place answering it. in my application, I have a welcome screen. when I run the program end- to-end everything is just fine - open/close activities and show dialogs of all sorts. but, when I reach the welcome