A (175)

(Tuis.) #1

620 CHAPTER 16: The Future of Android: The 64-Bit Android 5.0 OS


Exploring Your Android 5.0 App in IntelliJ


The first thing that you will probably notice in the Project pane, on the left side of IntelliJ, is that the
project folder hierarchy for your HelloAndroid5 project is organized differently than it is in Eclipse ADT,
as you can see in Figure 1 6-2 6. This might take you a few minutes to get used to, but is not a material
difference (no pun intended) from what you learned about in this book, since the /res (resource)
folders are named in the same way. The Android 5.0 resource folder is in the HelloAndroid5/app/src/
main/ folder hierarchy, which is logical, as resource folders are often kept in the source code folder in
many different programming languages. I suspect that since Android 5.0 uses Java 7, this is how
Java 7 applications store their resources, or it could be an Android Studio decision. Either way, as
long as a Gradle build engine can find everything, it is nothing more than semantics!


Figure 16-26. Exploring the HelloAndroid5 project in the IntelliJ IDEA to see how it differs from the Eclipse ADT


Also notice that the AndroidManifest.xml file is now located in the HelloAndroid5/app/src/main/res/
folder hierarchy, rather than in the root of the project folder as with Android 4. The Gradle build and
ProGuard files are in the HelloAndroid5/app/src/main/ folder. Take some time to explore this new
Android 5.0 project folder hierarchy by using the Project pane navigation icons, which work the same
way as they do in Eclipse ADT.


Notice in the activity_hello.xml tab in the central code editing pane of IntelliJ that the


parent tag and child tag are maked up in exactly the same way that
they are in Android 4.4 (and earlier), which is what I was talking about when I said that most of what
Free download pdf