lewisjdeane / L-Dialogs

A small library replicating the new dialogs in android L.
567 stars 100 forks source link

Can't show dialog #51

Closed ZheKOs closed 9 years ago

ZheKOs commented 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

ZheKOs commented 9 years ago

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