For Android, Vuforia passes the AndroidActivity as a parameter into the Vuforia::setInitParameters method. The SDK then stores a reference to the Activity and uses it internally for tasks related to rendering and camera handling. These values are set in the AndroidManifest.xml file for your project.
Hello,
For Android, Vuforia passes the AndroidActivity as a parameter into the Vuforia::setInitParameters method. The SDK then stores a reference to the Activity and uses it internally for tasks related to rendering and camera handling. These values are set in the AndroidManifest.xml file for your project.
<activity
android:name="com.vuforia.samples.ImageTargets.ImageTargets"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize" />
You can also derive the current orientation automatically through the Activity.
https://developer.android.com/reference/android/app/Activity.html#getRequestedOrientation%28%29
https://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation%28int%29
Thanks