Android Studio is the official IDE (Integrated Development Environment) developed by JetBrains community which is freely provided by Google for android app development.
After completing the setup of Android Architecture we can create android application in the studio. We need to create new project for each sample application and we should understand about the folder structure. It look like this:
The android project contains different type of app modules, source code files and resource files. We will explore all the folders and files in android app.
- Manifests Folder
- Java Folder
- res (Resources) Folder
- Drawable Folder
- Layout Folder
- Mipmap Folder
- Values Folder
- Gradle Scripts
Manifests folder contains AndroidManifest.xml for our creating the android application. This file contains information about our application such as android version, metadata, states package for Kotlin file and other application components. It acts as an intermediator between android OS and our application.
Following is the mainfests folder structure in android application.
Java folder contains all the java and Kotlin source code (.java) files which we create during the app development, including other Test files. If we create any new project using Kotlin, by default the class file MainActivity.kt file will create automatically under the package name “com.geeksforgeeks.myfirstkotlinapp” like as shown below.
Resource (res) folder
Resource folder is the most important folder because it contains all the non-code sources like images, XML layouts, UI strings for our android application.
It contains the different type of images used for the development of the application. We need to add all the images in drawable folder for the application development.
Layout folder contains all XML layout files which we used to define the user Interface of our application. It contains the activity_main.xml file.
This folder contains launcher.xml files to define icons which are used to show on the home screen. It contains different density type of icons depends upon the size of the device such as hdpi, mdpi, xhdpi.
Values folder contains a number of XML files like strings, dimens, colors and styles definitions. One of the most important file is strings.xml file which contains the resources.
Gradle Scripts folder
Gradle means automated build system and it contains number of files which are used to define a build configuration which can be apply to all modules in our application. In build.gradle (Project) there are buildscripts and in build.gradle (Module) plugins and implementations are used to build configurations that can be applied to all our application modules.
Attention reader! Don’t stop learning now. Get hold of all the important Java and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.
- Android | res/values folder
- Assets Folder in Android
- Android | How to Create/Start a New Project in Android Studio?
- Android | Android Application File Structure
- How to rename all files of a folder using Java?
- How to create project in Android Studio using Kotlin
- How to Upload Project on GitHub from Android Studio?
- Android | AdMob Banner Ads for Android Studio
- Android | AdMob Interstitial Ads for Android Studio
- Android | Running your first Android app
- Android | How to add Radio Buttons in an Android Application?
- Android | How to Request permissions in Android Application?
- Difference between Android 1.1 and Android 4.0.1
- Difference between Android 1.1 and Android 2.3.4
- Difference between Android 1.0 and Android 1.1
- Difference between Android 1.0 and Android 7.1
- Difference between Android 1.0 and Android 2.3
- Difference between Android 1.0 and Android 2.2
- Difference between Android 1.0 and Android 1.6
- Difference between Android 1.0 and Android 2.1
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.