Dialog throwing “Unable to add window — token null is not for an application” with getApplication() as context

Instead of getApplicationContext(), just use ActivityName.this.

Leave a Comment