Book Image

Android Application Development with Maven

Book Image

Android Application Development with Maven

Overview of this book

Table of Contents (14 chapters)

Reminders about Android projects


Before diving deeper into the subject, let's review some concepts and rules related to Android.

At first glance, an Android project looks like any other Java project. Yet, some differences are fundamental.

An Android project is made of sources (Java, XML, and property files) and code that is generated by the system. All of these are compiled into bytecode and compressed as an Android PacKage (APK) file. Some Android projects also can produce AAR files but we will have the chance to learn more about this in a following chapter.

Let's open the Android project we have created in the previous chapter, using an artifact. As seen, the hierarchy of folders and files is as following:

  • assets/: This will be reviewed later.

  • res/: This is a set of resources.

    • res/drawable-*pi/*.png: Due to the strong fractionation of Android system, and the high variety of devices, resources such as pictures, fonts, and so on have to be taken into account while releasing. Unless you do limit...