Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't show dialog #51

Closed
ZheKOs opened this issue Mar 9, 2015 · 1 comment
Closed

Can't show dialog #51

ZheKOs opened this issue Mar 9, 2015 · 1 comment

Comments

@ZheKOs
Copy link

ZheKOs commented Mar 9, 2015

When i try to show CustomListDialog I receive such error: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at this line: customListDialog.show();
What I did wrong?
Android API 16

@ZheKOs
Copy link
Author

ZheKOs commented Mar 9, 2015

found solution:
Instead of getApplicationContext(), just use ActivityName.this

@ZheKOs ZheKOs closed this as completed Mar 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant