Programming Android

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

steloflute 2012. 7. 15. 01:31

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 use an Activity context.


'Programming Android' 카테고리의 다른 글

NDK AAsset_read  (0) 2012.07.21
home key  (0) 2012.07.15
(NDK doc) NDK Prebuilt library support  (0) 2012.07.09
android input box  (0) 2012.07.09
Tremolo library (ogg)  (0) 2012.07.08