SyntaxFix
Write A Post
Hire A Developer
Questions
You can also do this
public class Example extends Activity { final Context context = this; final Dialog dialog = new Dialog(context); }
This worked for me !!