The document provides an overview of the file structure of Android applications, highlighting key components such as the AndroidManifest.xml, Java/Kotlin files, and the Res folder. It explains the significance of each component, including how they contribute to the application's behavior and appearance. The document also poses questions to reinforce understanding of the file structure.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views13 pages
Lecture-3 File Structure
The document provides an overview of the file structure of Android applications, highlighting key components such as the AndroidManifest.xml, Java/Kotlin files, and the Res folder. It explains the significance of each component, including how they contribute to the application's behavior and appearance. The document also poses questions to reinforce understanding of the file structure.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
Lecture-3
Android Application File Structure Contents
• Introduction to file system structure in
Android • Important files/folders, and their significance • Conclusion Introduction • Central to the understanding of Android application to Android development is a thorough comprehension of its Application file structure File Structure • A file structure—a systematic arrangement of resources, source code, and configuration files that collectively define the behavior and appearance of an Android application. • When a developer initiates a new Android project, the Android SDK (Software Development Kit) and tools such as Android Studio generate a predefined file and directory structure. Android Application File Structure
Every project in Android includes a manifest file,
which is AndroidManifest.xml, stored in the root directory of its project hierarchy. Android Manifest File
• It is an Important part of our app
because it defines the structure and metadata of our application, its components, and its requirements. • This file includes nodes for each of the Activities, Services, Content Providers and Broadcast Receiver that make the application and using Intent Filters and Permissions, 2.Java+Kotlin
•The Java+Kotlin folder contains
the Java source code files. These files are used as a controller for controlled UI (Layout file). •It gets the data from the Layout file and after processing that data output will be shown in the UI layout. •It works on the backend of an Android application. 3.Res Folder Keeps design elements separate from logic, supporting responsive UI and multi-language support.
drawable: A Drawable folder contains resource type
file (something that can be drawn). Drawables may take a variety of file like Bitmap (PNG, JPEG), Nine Patch, Vector (XML), Shape, Layers, States, Levels, and Scale 3.Res Folder layout: A layout defines the visual structure for a user interface, such as the UI for an Android application. This folder stores Layout files that are written in XML language. You can add additional layout objects or widgets as child elements to gradually build a View hierarchy that defines your layout file. 3.Res Folder • mipmap: Mipmap folder contains the Image Asset file that can be used in Android Studio application. You can generate the following icon types like Launcher icons, Action bar and tab icons, and Notification icons. • colors.xml: colors.xml file contains color resources of the Android application. Different color values are identified by a unique name that can be used in the Android application program. • strings.xml: The strings.xml file contains string resources of the Android application. The different string value is identified by a unique name that can be used in the Android application program. 3.Res Folder • styles.xml: The styles.xml file contains resources of the theme style in the Android application
• build.gradle(Module: app): This
defines the module-specific build configurations. Here you can add dependencies what you need in your Android application. Summary Now What is the purpose of the AndroidManifest.xml file in an Android project? Answer this Questions Name any two subdirectories found inside the res/ folder and mention what they contain.
Differentiate between the java/ and res/
folders in Android application structure with examples.
Describe the main components of an Android
application file structure. Illustrate with a labeled diagram.