new Dialog(getApplicationContext()); This is wrong. You need to use an Activity context. You have to try like: new Dialog(YourActivity.this);
Read full article from Android 'Unable to add window -- token null is not for an application' exception - Stack Overflow
No comments:
Post a Comment