Cardboard VR Projects for Android
上QQ阅读APP看书,第一时间看更新

Creating a new Cardboard project

With Android Studio installed, let's create a new project. These are the steps you'll follow for any of the projects in this book. We'll just make an empty skeleton and make sure that it can be built and run:

  1. After opening the IDE, you'll see a Welcome screen, as shown in the following screenshot:
    Creating a new Cardboard project
  2. Select Start a new Android Studio project, and the New Project screen appears, as follows:
    Creating a new Cardboard project
  3. Fill in your Application name:, such as Skeleton, and your Company Domain:, for example, cardbookvr.com. You can also change the Project location. Then, click on Next:
    Creating a new Cardboard project
  4. On the Target Android Devices screen, ensure that the Phone and Tablet checkbox is checked. In the Minimum SDK, select API 19: Android 4.4 (KitKat). Then, click on Next:
    Creating a new Cardboard project
  5. On the Add an activity to Mobile screen, select Empty Activity. We're going to build this project from scratch. Then, click on Next:
    Creating a new Cardboard project
  6. Keep the suggested name, MainActivity. Then, click on Finish.

Your brand new project comes up on Studio. If required, press Alt + 1 to open the Project View (Command + 1 on the Mac).