Book Image

Android Studio Essentials

By : Belén Cruz Zapata
Book Image

Android Studio Essentials

By: Belén Cruz Zapata

Overview of this book

<p>Android Studio is an IDE that is based on the JetBrains IntelliJ IDEA. It gives developers a unique platform to develop and debug Android apps using various developer tools. It has a wide array of features such as live layout facility, Gradle build support, and template-based wizards, which makes it a preferred choice for developers.</p> <p>Starting off with the basic installation and configuration of Android Studio, this book aids you in building a new project by helping you to create a custom launcher icon and guiding you to choose your activity. You then gain an insight on the additional tools provided in Android Studio, namely the Software Development Kit (SDK) Manager, Android Virtual Device (AVD) Manager, and Javadoc.</p> <p>Finally, it helps you to familiarize yourself with the Help section in Android Studio that enables you to search for the help you might require in different scenarios.</p>
Table of Contents (17 chapters)
Android Studio Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The project structure


We can examine the project structure in the project navigation pane. The project structure includes a folder with the name of our application. This folder contains the application structure and files. The most important elements of the application structure are in the app directory. These include:

  • build/: This is a folder that contains the resources compiled after building the application and the classes generated by the Android tools, such as the R.java file, which contains references to the application resources.

  • libs/: This is a folder that contains the libraries referenced from our code.

  • src/androidTest/: This is a folder that contains the test classes of the Java classes that need to be tested.

  • src/main/: This is a folder that contains the sources of our application. All the files we usually work with are in this folder. The main folder is subdivided as follows:

    • java/: This is a folder that contains Java classes organized as packages. Every class we create will...