I get the following Android exception when I try to open a dialog. Can someone please help me understand what is going on and how can I fix this problem?
and
In my case I was trying to create my dialog like this:
new Dialog(getApplicationContext());
So I had to change for:
new Dialog(this);
And it works fine for me ;)