SlideShare a Scribd company logo
Android Studio 2.0:
default project structure
Created by:
Vyara Georgieva
Android Studio 2.0: default project
structure
See the mind map visualization
Android Studio 2.0:
default project
structure
app (module)
Gradle scripts
(module)
Gradle is the official build
system for Android Studio.
Its configuration is set in
the files contained here.
The application
The application’s
specification is
defined here
app (module)
manifests java
res
Stores the
app’s
manifest file The externalized app’s
resources are stored in
the different
subdirectories of the
project’s res directory
The app’s source
code is placed here
manifests
AndroidManifest.xml
The application
The AndroidManifest.xml
file must be in the root
directory of the application.
The information presented
here is essential. It's a must,
in order the app's code to
run.
Required elements:
<manifest> <application>
The
application
Required attributes:
xmlns:android ->
defines the Android
namespace. It must
always be set to:
"http://schemas.a
ndroid.com/apk/re
s/android"
package -> the
unique package
name for the
application. One
the app published,
the package name
cannot be
changed.
Theapplication
The app's components
are defined here.
By default, some
attributes (icon, label,
theme) are set to default
values
<activity>
The application
Each of the app's activities must be
described in the manifest via a separate
<activity> element. Otherwise they would
not be run.
java
main project
directory androidTest
test
The
application
The source code
for the whole
application is
contained here.
The content of
this module is to
be built into .apk
file and installed
on a device.
MainActivity
ApplicationTest
ExampleUnitTest
Testing
modulesThe applicationJUnit tests
inserted here
resdrawable
layout mipmap
values
Here are
stored
resources "that
can be drawn"
(.jpg, .png, .
9.png, .gif) or
XML files that
can be
compiled into a
drawable
resource
subtype)
Stores drawable files for
different launcher icon
densities. The launcher
icon reference in the
AndroidManifest.xml
should be altered as well:
android:icon="@mipmap/
ic_launcher"
The XML files from
here are compiled into
screen layouts.
Different layouts could
be provided for
different densities
External
resources
for the
application’s
elements
valuescolors.xml
dimens.xml strings.xml
styles.xml
A set list of colors
provided. The
color is specified
with an RGB
value and optional
alpha channel.
<color
name="red">
#ff0000</color>
Defines different
customization
based on the
physical device
density of the
screen
The text strings for
the application are
stored here.
<string
name="app_name
">Test</string>
Here we
specify the
format and the
look for the
user interface
(UI).
The styles can
be differently
applied to:
1) Views
2) Activities
3) The
application
itself
dimens.xml dimens.xml
(w820dp)
Gradle scripts
(module)
build.gradle
(project)
build.gradle
(module)
settings.gradle
gradle.
properties
proguard-rules.pro
local.
properties
This
is
the
top-level build
file. The
version
for the
G
radle
plugin
for android
is
specified
here.
classpath
'com
.android.tools.
build:gradle:2.0.0'
Each
m
odule
has
a
separate
build.gradle
file
with
pre-defined
values/settings
ProGuard is a free Java
class file that shrinks,
optimizes, obfuscates,
and preverifies. It detects
and removes unused
classes, fields, methods,
and attributes. It
optimizes bytecode and
removes unused
instructions.
Specifies the directory
where the SDK is
located
Includes the
modules the
application
consists of
Android Studio 2.0:
default project structure
Vyara Georgieva
viara.georgieva.g@gmail.com

More Related Content

What's hot (20)

PPTX
Java RMI
Prajakta Nimje
 
PPTX
Java Spring Framework
Mehul Jariwala
 
PDF
Android Threading
Jussi Pohjolainen
 
PPT
android menus
Deepa Rani
 
PPT
Object-oriented concepts
BG Java EE Course
 
PPTX
Android UI
nationalmobileapps
 
PPT
Node.js Basics
TheCreativedev Blog
 
PPT
PHP CONDITIONAL STATEMENTS AND LOOPING.ppt
rehna9
 
PDF
Android resource
Krazy Koder
 
PPTX
Java(Polymorphism)
harsh kothari
 
PDF
Fragments In Android
DivyaKS12
 
PPTX
ASP.NET Page Life Cycle
Abhishek Sur
 
PPT
Node.js Express Framework
TheCreativedev Blog
 
PPTX
Android testing
JinaTm
 
PDF
Life cycle-of-a-thread
javaicon
 
PPT
Webservices
Gerard Sylvester
 
PPT
android content providers
Deepa Rani
 
PPT
Introduction to java beans
Hitesh Parmar
 
PPTX
Multithreading and concurrency in android
Rakesh Jha
 
PDF
MongoDB and Node.js
Norberto Leite
 
Java RMI
Prajakta Nimje
 
Java Spring Framework
Mehul Jariwala
 
Android Threading
Jussi Pohjolainen
 
android menus
Deepa Rani
 
Object-oriented concepts
BG Java EE Course
 
Android UI
nationalmobileapps
 
Node.js Basics
TheCreativedev Blog
 
PHP CONDITIONAL STATEMENTS AND LOOPING.ppt
rehna9
 
Android resource
Krazy Koder
 
Java(Polymorphism)
harsh kothari
 
Fragments In Android
DivyaKS12
 
ASP.NET Page Life Cycle
Abhishek Sur
 
Node.js Express Framework
TheCreativedev Blog
 
Android testing
JinaTm
 
Life cycle-of-a-thread
javaicon
 
Webservices
Gerard Sylvester
 
android content providers
Deepa Rani
 
Introduction to java beans
Hitesh Parmar
 
Multithreading and concurrency in android
Rakesh Jha
 
MongoDB and Node.js
Norberto Leite
 

Viewers also liked (17)

PDF
Android studio 2.0
Edouard Marquez
 
ZIP
Android Application Development
Benny Skogberg
 
PDF
Data structure singly linked list programs VTU Exams
iCreateWorld
 
PDF
Why Code 'for' Android and Motodev Studio
CodeAndroid
 
PDF
Android Development - Process & Tools
Lope Emano
 
PDF
Android Studio 2.2 - What's new in Android development tools
Taeho Kim
 
PDF
Google I/O 2013 報告会 Android Studio と Gradle
Keishin Yokomaku
 
PPTX
Introduction to Android development - Presentation
Atul Panjwani
 
PDF
Android N, Java 8, Android Studio 2.2?
Marcelo Quinta
 
PDF
Games and Java ME - Have fun and earn some money
Marcelo Quinta
 
PDF
Introduction to Android Studio
Michael Pan
 
PDF
Android studio
Paresh Mayani
 
DOCX
Location Tracking of Android Device Based on SMS.
iCreateWorld
 
PPTX
Introduction to Android and Android Studio
Suyash Srijan
 
DOC
My Project Report Documentation with Abstract & Snapshots
Usman Sait
 
PDF
Android College Application Project Report
stalin george
 
PDF
Android report
blogger at indiandswad
 
Android studio 2.0
Edouard Marquez
 
Android Application Development
Benny Skogberg
 
Data structure singly linked list programs VTU Exams
iCreateWorld
 
Why Code 'for' Android and Motodev Studio
CodeAndroid
 
Android Development - Process & Tools
Lope Emano
 
Android Studio 2.2 - What's new in Android development tools
Taeho Kim
 
Google I/O 2013 報告会 Android Studio と Gradle
Keishin Yokomaku
 
Introduction to Android development - Presentation
Atul Panjwani
 
Android N, Java 8, Android Studio 2.2?
Marcelo Quinta
 
Games and Java ME - Have fun and earn some money
Marcelo Quinta
 
Introduction to Android Studio
Michael Pan
 
Android studio
Paresh Mayani
 
Location Tracking of Android Device Based on SMS.
iCreateWorld
 
Introduction to Android and Android Studio
Suyash Srijan
 
My Project Report Documentation with Abstract & Snapshots
Usman Sait
 
Android College Application Project Report
stalin george
 
Android report
blogger at indiandswad
 
Ad

Similar to Android studio 2.0: default project structure (20)

PPTX
Android Programming.pptx
vishal choudhary
 
PPT
Unit 2 in environment science and technology
saimohith981
 
PPTX
mobile application development -unit-3-
TejamFandat
 
PPT
Synapseindia android apps introduction hello world
Tarunsingh198
 
PPT
Android project architecture
Sourabh Sahu
 
PPTX
03 android application structure
Sokngim Sa
 
PDF
Basics and different xml files used in android
Mahmudul Hasan
 
PPTX
this is PPT for mobail application development
swapnildhage339
 
PPT
Android application structure
Alexey Ustenko
 
PPTX
Mobile Application Development-Components and Layouts
Dr. Chandrakant Divate
 
PPTX
Lesson 10
CITSimon
 
PPTX
Android Studio development model and.pptx
VaibhavKhunger2
 
DOCX
Android resources in android-chapter9
Dr. Ramkumar Lakshminarayanan
 
PPTX
Anatomy Of An Adroid Application Lecture 3.pptx
Muzamil Yousaf
 
PPTX
Module-I_Introduction-to-Android.pptx
lancelotlaytan1996
 
PPT
Lec005 android start_program
Eyad Almasri
 
PDF
Lecture 05. UI programming for Mobile Apps
Maksym Davydov
 
DOCX
Android Resources.docx
KNANTHINIMCA
 
PPTX
Android app development lesson 1
Kalluri Vinay Reddy
 
PPT
MD-IV-CH-ppt.ppt
bharatt7
 
Android Programming.pptx
vishal choudhary
 
Unit 2 in environment science and technology
saimohith981
 
mobile application development -unit-3-
TejamFandat
 
Synapseindia android apps introduction hello world
Tarunsingh198
 
Android project architecture
Sourabh Sahu
 
03 android application structure
Sokngim Sa
 
Basics and different xml files used in android
Mahmudul Hasan
 
this is PPT for mobail application development
swapnildhage339
 
Android application structure
Alexey Ustenko
 
Mobile Application Development-Components and Layouts
Dr. Chandrakant Divate
 
Lesson 10
CITSimon
 
Android Studio development model and.pptx
VaibhavKhunger2
 
Android resources in android-chapter9
Dr. Ramkumar Lakshminarayanan
 
Anatomy Of An Adroid Application Lecture 3.pptx
Muzamil Yousaf
 
Module-I_Introduction-to-Android.pptx
lancelotlaytan1996
 
Lec005 android start_program
Eyad Almasri
 
Lecture 05. UI programming for Mobile Apps
Maksym Davydov
 
Android Resources.docx
KNANTHINIMCA
 
Android app development lesson 1
Kalluri Vinay Reddy
 
MD-IV-CH-ppt.ppt
bharatt7
 
Ad

Recently uploaded (20)

PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 

Android studio 2.0: default project structure

  • 1. Android Studio 2.0: default project structure Created by: Vyara Georgieva
  • 2. Android Studio 2.0: default project structure See the mind map visualization
  • 3. Android Studio 2.0: default project structure app (module) Gradle scripts (module) Gradle is the official build system for Android Studio. Its configuration is set in the files contained here. The application The application’s specification is defined here
  • 4. app (module) manifests java res Stores the app’s manifest file The externalized app’s resources are stored in the different subdirectories of the project’s res directory The app’s source code is placed here
  • 5. manifests AndroidManifest.xml The application The AndroidManifest.xml file must be in the root directory of the application. The information presented here is essential. It's a must, in order the app's code to run. Required elements: <manifest> <application> The application Required attributes: xmlns:android -> defines the Android namespace. It must always be set to: "http://schemas.a ndroid.com/apk/re s/android" package -> the unique package name for the application. One the app published, the package name cannot be changed. Theapplication The app's components are defined here. By default, some attributes (icon, label, theme) are set to default values <activity> The application Each of the app's activities must be described in the manifest via a separate <activity> element. Otherwise they would not be run.
  • 6. java main project directory androidTest test The application The source code for the whole application is contained here. The content of this module is to be built into .apk file and installed on a device. MainActivity ApplicationTest ExampleUnitTest Testing modulesThe applicationJUnit tests inserted here
  • 7. resdrawable layout mipmap values Here are stored resources "that can be drawn" (.jpg, .png, . 9.png, .gif) or XML files that can be compiled into a drawable resource subtype) Stores drawable files for different launcher icon densities. The launcher icon reference in the AndroidManifest.xml should be altered as well: android:icon="@mipmap/ ic_launcher" The XML files from here are compiled into screen layouts. Different layouts could be provided for different densities External resources for the application’s elements
  • 8. valuescolors.xml dimens.xml strings.xml styles.xml A set list of colors provided. The color is specified with an RGB value and optional alpha channel. <color name="red"> #ff0000</color> Defines different customization based on the physical device density of the screen The text strings for the application are stored here. <string name="app_name ">Test</string> Here we specify the format and the look for the user interface (UI). The styles can be differently applied to: 1) Views 2) Activities 3) The application itself dimens.xml dimens.xml (w820dp)
  • 9. Gradle scripts (module) build.gradle (project) build.gradle (module) settings.gradle gradle. properties proguard-rules.pro local. properties This is the top-level build file. The version for the G radle plugin for android is specified here. classpath 'com .android.tools. build:gradle:2.0.0' Each m odule has a separate build.gradle file with pre-defined values/settings ProGuard is a free Java class file that shrinks, optimizes, obfuscates, and preverifies. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. Specifies the directory where the SDK is located Includes the modules the application consists of
  • 10. Android Studio 2.0: default project structure Vyara Georgieva [email protected]