Instead of :
Context appContext = this.getApplicationContext();
you should use a pointer to the activity you’re in (probably
I got bitten by this today too, the annoying part is the
getApplicationContext() is verbatim from developer.android.com 🙁
You cannot display an application window/dialog through a Context that is not an Activity. Try passing a valid activity reference
Ditto on the getApplicationContext thing.
The documents on the android site says to use it, but it doesn’t work…grrrrr 😛
dialog = new Dialog(this);
“this” is usually your Activity from which you start the dialog.