분류 전체보기 1346

Android 'Unable to add window — token null is not for an application' exception

http://stackoverflow.com/questions/2634991/android-1-6-android-view-windowmanagerbadtokenexception-unable-to-add-window http://stackoverflow.com/questions/7933206/android-unable-to-add-window-token-null-is-not-for-an-application-exception I'm guessing - are you trying to create Dialog with an application context? Something like this:new Dialog(getApplicationContext()); This is wrong. You need to..

Programming Android 2012.07.15