Before starting to use the SXR SDK, make sure you download the following SDKs
- Android Studio
- JDK 1.7 or above
- Oculus Mobile SDK (If developing for Samsung GearVR)
- Google VR SDK (If developing for Google DayDream)
- A Samsung XR supported devices
Getting started with the SXR SDK in few simple steps
- Download the template project
- Rename your project by changine the folder name
- Open the project with Android Studio
- Rename your Android App by updating
- (For Gear VR only) Make sure to download your Oculus signature file and copy it under
(For DayDream only) remove following code
<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/>
(For DayDream only) add following code (read more)
<intent-filter> <action android:name="android.intent.action.MAIN" /> <!-- intent-filter for DayDream--> <category android:name="com.google.intent.category.DAYDREAM"/> <!-- End intent-filter for DayDream--> </intent-filter>
Update the applicationID in
app/build.gradleto avoid conflict between other SXR apps.
- Click Run button and put on your XR device
After you build the application, click
Start and your device will install Oculus automatically.
You can test VR apps without a VR headset, by enabling Samsung VR service developer mode. Settings > Apps > manage applications > Gear VR Service > Storage > Manage Storage - press the "VR Service Version" 6 times. After that a 'You are a developer' message will appear.
Make sure to install your VR app with a valid oculus signature on the device first. Otherwise you'll see a 'You are not a developer' message.
Screen will start blinking after you turn on the developer mode
Enable Google VR Service from "Settings" => "Apps" => "Google VR Service" make sure it has the permission it required to run.