While developing Android applications we have to deal with different types of files. These files are at different locations. In this tutorial, I will discuss Directory Structure of android. Android Studio project keeps our files well organized.
Directory Structure of Android
This file most important file in an Android project. This file contains an index of your application. Information about permissions, Activities, Services etc. have to be listed in this file. For better understanding take an example of a book. Every book has an index page at the start. This index page contains a list of all chapters. Inside chapters list of topics. So if you want to find the specific topic you can refer this index to directly jump to that section. The manifest file is also like an index of application where permissions, Activities, Services etc. are listed. An example of the Manifest file is below.
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
This is the folder where you can put all of your functional logic of your application. This folder will contain all of your java classes interfaces etc. You can create packages under it to organize your project well. An example of This folder is as shown below.
This folder contains all of your application resources like layouts, drawables, strings, dimensions. We will take look at some most important folders and files.
This folder contains all of your application icons, images, vectors etc.
All layouts of your application goes in this folder.
This folder contains files like strings.xml, styles.xml, dimens.xml . Strings.xml file contains all of your application strings. Suppose you have a string and you want to use it, again and again, you can define it inside strings.xml and use reference. styles.xml is used to define all necessary styles of application.
If you still have any queries, please post them in the comments section below, I will be happy to help you. If you have any other questions in mind then make sure to visit our ask section.