Closed ZheKOs closed 9 years ago
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
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
customListDialog.show();
found solution: Instead of getApplicationContext(), just use ActivityName.this
getApplicationContext()
ActivityName.this
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