- If you have any questions/comments, please visit Pico Developer Answers and raise your question there.
JAR file, demo apk and config file are in /resource.
Note: Regarding JAR file creation and usage, please refer to the Guideline
This demo can read the url from config file , then launch WebVR Browser to open the url.
- First, copy the config file (config.txt) to the Download directory of the device.
- Modify the url in config.txt to what you need.
- Install WebVR browser (chromepublic20180504.apk).
- Build this project (or install demo apk directly) and launch, then it will switch to WebVR Browser and open the url.
android:name="com.picovr.launchwebvr.LaunchWebVRClass"
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Add shardUserId property:
android:sharedUserId="android.uid.system"
void launch(Context context, String filePath)
string configPath = "/storage/emulated/0/Download/config.txt";
AndroidJavaObject ajo = new AndroidJavaObject("com.picovr.launchwebvr.LaunchWebVRClass");
AndroidJavaObject context = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");
ajo.Call("launch", context, configPath);
This demo requires system signature. About how to sign a apk, refer to this Customize Launcher on Pico Device.