The Android project structure
The root directory of your Android project contains various files and subdirectories. Or, should I say, the root folder of your Android project contains various files and subfolders. Ha ha. We'll use the words "folder" and "directory" interchangeably throughout this book, just as Android Studio also seems to do (actually, there is a difference, as discussed at http://stackoverflow.com/questions/29454427/new-directory-vs-new-folder-in-android-studio).
As shown in the Android hierarchy, in the following sample Cardboard project, the root directory contains an
app/
subdirectory, which, in turn, contains the following subdirectories:
app/manifests/
: This contains theAndroidManifest.xml
manifest file that specifies the components of the application, including activities (UI), device permissions, and other configurationsapp/java/
: This contains subfolders with your application Java files that implement the application'sMainActivity
and other classesapp/res/
: This...