This guide shows you how to build and run the Paperscope demo app for Android. Paperscope demonstrates the core features of the Cardboard SDK on Android.
Set up your development environment
Software requirements:
- Android Studio
- Git must be installed and the
gitexecutable must be on thePATHenvironment variable.
Download and build the demo app
Follow these steps to download the codebase and open the sample project in Android Studio.
Clone the Google Cardboard repository:
git clone https://github.com/googlevr/cardboard.gitLaunch Android Studio and select Open an existing project.
Navigate to the directory where you cloned the Google Cardboard repository and select it.
Wait for Android Studio to sync the project with Gradle files.
Run the demo app
- From the run configurations drop-down in the toolbar, select the paperscope configuration.
Connect a physical Android device or select a virtual device (emulator) as the target.
Click Run or press
Shift+F10to build and launch the app.
Next steps
- Review the Cardboard branding guidelines.