Configure Device Capabilities¶
For every VR DeviceService in your VR app, VR DeviceService must be declared in AndroidManifest.xml for VIVE Wave™ Server to know it exists.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.htc.intent.category.VRDEV" />
</intent-filter>
If the VR DeviceService is a HMD, add this line:
<meta-data android:name="supportHmd" android:value="true" />
If the VR DeviceService is a controller, add this line:
<meta-data android:name="supportController" android:value="true" />
For VIVEPORT to filter VR apps by VRDevice attributes, VR DeviceService must define its capabilities in the AndroidManifest.xml <service> region.
- meta-data
- com.htc.vr.device.NumDoFHmd
- Add
meta-data android:name
“com.htc.vr.device.NumDoFHmd” and enter the supported HMD positional tracking for the Wave app inandroid:value
. The default value is 6DoF. Check the comment within the code block to know what value you should set. - com.htc.vr.device.NumDoFController
- Add
meta-data android:name
“com.htc.vr.device.NumDoFController” and enter the supported controller positional tracking for the Wave app inandroid:value
. The default value is 6DoF. Check the comment within the code block to know what value you should set. - com.htc.vr.device.NumController
- Add
meta-data android:name
“com.htc.vr.device.NumController” and enter how many controllers the Controller can support inandroid:value
. The value can be 1, 2, or both. Check the comment within the code block to know what value you should set.
<!--Consider setting the DoF support for the device (HMD and controller) for filtering the Wave app in VIVEPORT.--> <!--Set value to “3DoF” if your device only considers the rotation pose. --> <!--Set value to “6DoF” if your device considers both rotation and position pose. --> <!--Set value to “3,6DoF” if your device is capable of supporting both 3DoF and 6DoF. --> <meta-data android:name="com.htc.vr.device.NumDoFHmd" android:value="6DoF"/> <meta-data android:name="com.htc.vr device.NumDoFController" android:value="6DoF"/> <!--Set how many controllers the Controller can support for filtering the Wave app in VIVEPORT.--> <!--Set value to “1” if your device only supports one controler. --> <!--Set value to “2” if your device only supports two controlers. --> <!--Set value to “1,2” if your device supports either one or two controllers. --> <meta-data android:name="com.htc.vr.device.NumController" android:value="2"/>