I think it will require using QAndroidJniObject and calling the native api as the screen rotation is handled by OS.
Yeah, thanks, i set it with JNI call of setRequestedOrientation.
In AndroidManifest.xml you have option, on which all orientation does the app have to work on.
When you check You can see similar like,
<activity
android:name=“com.android”
android:label=“text”
android:screenOrientation=“portrait”.
…
</activity>
I know that orientation can be set in manifest, but that about how to change it at runtime.
↧










