Configure App Capabilities¶
To ensure the Wave contents well compatible with the Wave devices for the users, the Wave app must define its capabilities in AndroidManifest.xml.
- uses-sdk
- android:minSDKVersion
- Set android:minSDKVersion to “25” which is the minimum Android version Wave VR supports.
<uses-sdk android:minSdkVersion="25"/>
- activity
- android:screenOrientation
- Set android:screenOrientation to “landscape” to ensure the screen being split into two eyes correctly.
- android:theme
- Disable the TitleBar and set Fullscreen in android:theme. The application must be run with full screen. No window elements should be visible.
<activity android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> </activity>
- intent-filter
- category
- Add category android:name “com.htc.intent.category.VRAPP” to allow categorizing the Wave applications.
<intent-filter> <category android:name="com.htc.intent.category.VRAPP" /> </intent-filter>
- meta-data
- minWaveSDKVersion
- Add meta-data android:name “minWaveSDKVersion” and fill in android:value with the maximum Wave SDK API level which your app uses, default value is 1.
- com.htc.vr.content.NumDoFHmd
- Add meta-data android:name “com.htc.vr.content.NumDoFHmd” and fill in android:value with the tracking mode support of the HMD for your app. The default value is 6DoF which means the app supports 6DoF HMD tracking. See the following comment within code block to know what value you should set.
- com.htc.vr.content.NumDoFController
- Add meta-data android:name “com.htc.vr.content.NumDoFController” and fill in android:value with the tracking mode support of the controller for your app. The default value is 6DoF which means the app supports 6DoF controller tracking. See the following comment within code block to know what value you should set.
- com.htc.vr.content.NumController
- Add meta-data android:name “com.htc.vr.content.NumController” and fill in android:value with how many controllers the app can support. Its value could be 0, 1 or 2.
<meta-data android:name="minWaveSDKVersion" android:value="1" /> <meta-data android:name="com.htc.vr.content.NumDoFHmd" android:value="6DoF"/> <meta-data android:name="com.htc.vr.content.NumDoFController" android:value="6DoF"/> <!--Please consider the DoF support of HMD and controller individually for your content.--> <!--Set value “3DoF” if your content only considers the rotation pose. --> <!--Set value “6DoF” if your content considers both rotation and position pose. --> <!--Set value “3,6DoF” if your content is capable of supporting both 3 and 6 DoF playing. --> <meta-data android:name="com.htc.vr.content.NumController" android:value="2"/> <!--fill the value of how many controllers the application can support.-->