Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33140

Android: Rotation breaks with targetSdkVersion > 12

XMLWordPrintable

    • Android
    • 96a11284f20312845a214df14b470f999d1e3c11

      When you set the targetSdkVersion of your app to 13 or higher (to get rid of the overflow button in the action bar), then rotation stops working.

      When you try to rotate any app running on the OpenGL plugin, you get the following exception:

      W/System.err(23887): java.lang.reflect.InvocationTargetException
      W/System.err(23887):    at java.lang.reflect.Method.invokeNative(Native Method)
      W/System.err(23887):    at java.lang.reflect.Method.invoke(Method.java:525)
      W/System.err(23887):    at org.qtproject.qt5.android.QtActivityDelegate.onSaveInstanceState(QtActivityDelegate.java:653)
      W/System.err(23887):    at java.lang.reflect.Method.invokeNative(Native Method)
      W/System.err(23887):    at java.lang.reflect.Method.invoke(Method.java:525)
      W/System.err(23887):    at org.qtproject.qt5.android.bindings.QtApplication.invokeDelegateMethod(QtApplication.java:143)
      W/System.err(23887):    at org.qtproject.qt5.android.bindings.QtApplication.invokeDelegate(QtApplication.java:132)
      W/System.err(23887):    at org.qtproject.qt5.android.bindings.QtActivity.onSaveInstanceState(QtActivity.java:1074)
      W/System.err(23887):    at android.app.Activity.performSaveInstanceState(Activity.java:1147)
      W/System.err(23887):    at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1223)
      W/System.err(23887):    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3714)
      W/System.err(23887):    at android.app.ActivityThread.access$700(ActivityThread.java:141)
      W/System.err(23887):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1262)
      W/System.err(23887):    at android.os.Handler.dispatchMessage(Handler.java:99)
      W/System.err(23887):    at android.os.Looper.loop(Looper.java:137)
      W/System.err(23887):    at android.app.ActivityThread.main(ActivityThread.java:5103)
      W/System.err(23887):    at java.lang.reflect.Method.invokeNative(Native Method)
      W/System.err(23887):    at java.lang.reflect.Method.invoke(Method.java:525)
      W/System.err(23887):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      W/System.err(23887):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      W/System.err(23887):    at dalvik.system.NativeStart.main(Native Method)
      W/System.err(23887): Caused by: java.lang.NullPointerException
      W/System.err(23887):    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1410)
      W/System.err(23887):    at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1608)
      W/System.err(23887):    at android.app.Activity.onSaveInstanceState(Activity.java:1199)
      W/System.err(23887):    at org.qtproject.qt5.android.bindings.QtActivity.super_onSaveInstanceState(QtActivity.java:1079)
      W/System.err(23887):    ... 21 more
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes