Hi, It misses screenSize. android:configChanges="orientation|screenSize|keyboardHidden" should work.
Cheers, Laszlo On Mon, Nov 12, 2012 at 3:15 PM, Walter Horsten <[email protected]>wrote: > Hi all, > > I don't think this works very well (or at all) with NativeActivity at the > moment, I put "configChanges:orientation" in the manifest, but android > insists on restarting the NativeActivity ... for example: > > <activity android:name="android.app.NativeActivity" > android:label="@string/native_activity_name" > android:configChanges="orientation|keyboardHidden"> > <!-- Tell NativeActivity the name of our .so --> > <meta-data android:name="android.app.lib_name" > android:value="qtqpatest"/> > </activity> > > Or am I missing something? > > Regards, > Walter > > > > On Mon, Nov 12, 2012 at 1:33 PM, <[email protected]> wrote: > >> On Android it is possible to handle display orientation by yourself, >> not using the default behaviour of destroying and recreating the UI.**** >> >> You’d use OrientationEventListener & Display classes to detect the >> orientation then.**** >> >> This would make sense for a QML application where the scene graph can >> handle rotation of elements.**** >> >> ** ** >> >> The android:configChanges element in the manifest file is used to specify >> what things the application can handle itself.**** >> >> ** ** >> >> See also >> http://developer.android.com/guide/topics/resources/runtime-changes.html* >> *** >> >> -- **** >> >> ------------------------------ >> This message is for the designated recipient only and may contain >> privileged, proprietary, or otherwise private information. If you have >> received it in error, please notify the sender immediately and delete the >> original. Any other use of the e-mail by you is prohibited. >> >> Where allowed by local law, electronic communications with Accenture and >> its affiliates, including e-mail and instant messaging (including content), >> may be scanned by our systems for the purposes of information security and >> assessment of internal compliance with Accenture policy. >> >> >> ______________________________________________________________________________________ >> >> www.accenture.com >> > > > _______________________________________________ > Development mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/development > >
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
