Setting up the new project
To build this project, we're going to use our RenderBox
library created in Chapter 5, RenderBox Engine. You can use yours, or grab a copy from the download files provided with this book or our GitHub repo (use the commit tagged after-ch6
—https://github.com/cardbookvr/renderboxlib/releases/tag/after-ch6). For a more detailed description of how to import the RenderBox
library, refer to the final section, Using RenderBox in future projects, in Chapter 5, RenderBox Engine. To do this, perform the following steps:
With Android Studio opened, create a new project. Let's name it
Gallery360
and target Android 4.4 KitKat (API 19) with an Empty Activity.Create new modules for the
renderbox
,common
, andcore
packages, using File | New Module | Import .JAR/.AAR Package.Set the modules as dependencies for the app, using File | Project Structure.
Edit the
build.gradle
file as explained in Chapter 2, The Skeleton Cardboard Project, to compile against SDK 22.Update
/res/layout/activity_main...