O'Reilly logo

Cardboard VR Projects for Android by Matt Schoen, Jonathan Linowes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The AndroidManifest.xml file

The new empty app includes a handful of default files, including the manifests/AndroidManifest.xml file (this is if you have the Android view activated. In the Project view, it is in app/src/main). Every application must have an AndroidManifest.xml file in its manifest directory that tells the Android system what it needs in order to run the app's code, along with other metadata.

Let's set this up first. Open your AndroidManifest.xml file in the editor. Modify it to read it as follows:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.cardbookvr.skeleton" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required