SyntaxFix
Write A Post
Hire A Developer
Questions
As it's said, you need an Activity as context for the dialog, use "YourActivity.this" for a static context or check here for how to use a dynamic one in a safe mode