3 Development notes

3.1 Enable device USB Debugging on device

Please check details from this FAQ link on how to enable developer https://sdk.picovr.com/docs/FAQ/chapter_one.html

3.2 Android Manifest Document

  • Special meta-data needs to be added; otherwise, an exception will be displayed::
<meta-data android:name=" pvr.app.type " android:value="vr"/>
<meta-data android:name=" pvr.display.orientation " android:value="180"/>
  • All activity that needs to be displayed needs to inherited from
com.unity3d.player.UnityPlayerNativeActivityPico
  • Add the necessary permissions
<!--The following permissions are required-->
<!--For SDK basic APIs-->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<!--The following permissions are optional-->
<!--Required by Globin series controller APIs, optional if the app targeting Neo 2 and Neo 3 series-->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.INJECT_EVENTS" />

<!--Payment-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!--Vibrate-->
<uses-permission android:name="android.permission.VIBRATE"/>

<!--Set screen brightness -->
<uses-permission android:name="android.permission.WRITE_SETTINGS" />

<!--Change language-->
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />