When I launch the application on my phone. Version - Android 4.0.3

What is this error and why is this happening? The sdk value is 4.0.3.

07-16 14:00:03.090: E/AndroidRuntime(29487): FATAL EXCEPTION: main 07-16 14:00:03.090: E/AndroidRuntime(29487): java.lang.IllegalArgumentException: Window type can not be changed after the window is added. 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.os.Parcel.readException(Parcel.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.os.Parcel.readException(Parcel.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.view.IWindowSession$Stub$Proxy.relayout(IWindowSession.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.view.ViewRootImpl.relayoutWindow(ViewRootImpl.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.os.Handler.dispatchMessage(Handler.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.os.Looper.loop(Looper.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at android.app.ActivityThread.main(ActivityThread.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at java.lang.reflect.Method.invokeNative(Native Method) 07-16 14:00:03.090: E/AndroidRuntime(29487): at java.lang.reflect.Method.invoke(Method.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java) 07-16 14:00:03.090: E/AndroidRuntime(29487): at dalvik.system.NativeStart.main(Native Method) 

When I run the application, the application will automatically shut down. An exception.

+2
android logcat
Jul 16 '12 at 6:13
source share
2 answers

Look at this post

secure toddler app on Android phone

I think this can help, he gets the same error.

 java.lang.IllegalArgumentException: Window type can not be changed after the window is added 
+1
Jul 16 '12 at 6:19 06:19
source share

If you want to run a specific version of Android, then read the API at: http://developer.android.com/reference/android/os/Build.html

and find a property that can help you.

0
Jul 16 '12 at 6:17
source share



All Articles