SyntaxFix
Write A Post
Hire A Developer
Questions
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 ;)