title: android 2.2 apps not working in android 4.0
body: <p>I am working on android 2.2 froyo application. when i am run my apps android 2.2,3.0 that time perfect run. but when i am run on android 4.0 and up that time i give an error.Like unfortunately, apps has stopped.Please help me how can i solve error.</p>
  
  <pre><code>08-03 16:19:36.602: E/AndroidRuntime(581): FATAL EXCEPTION: main
  08-03 16:19:36.602: E/AndroidRuntime(581): java.lang.IllegalArgumentException: Window type can not be changed after the window is added.
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.os.Parcel.readException(Parcel.java:1331)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.os.Parcel.readException(Parcel.java:1281)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.view.IWindowSession$Stub$Proxy.relayout(IWindowSession.java:634)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.view.ViewRootImpl.relayoutWindow(ViewRootImpl.java:3586)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1185)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.os.Handler.dispatchMessage(Handler.java:99)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.os.Looper.loop(Looper.java:137)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at android.app.ActivityThread.main(ActivityThread.java:4424)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at java.lang.reflect.Method.invokeNative(Native Method)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at java.lang.reflect.Method.invoke(Method.java:511)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  08-03 16:19:36.602: E/AndroidRuntime(581):  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>Logcat<br>
  Error is like:
  unfortunately app has stopped </p>