Professional Documents
Culture Documents
• JAVA folder
• consist of the java files that are required to perform the background
task of the app.
• Consist of the functionality of the buttons, calculation, storing,
variables, toast(small popup message) , programming function, etc.
• The number of these files depends upon the type of activities created.
Cont..
• Res or Resource folder
• consist drawable, layout, mipmap, raw and values.
• drawable consist of the images. The layout consist of the XML files
that defines the user interface layout.
• res.layout (R.layout class). The raw consist of the Resources files like
audio file or music file,etc. These are accessed through
R.raw.filename.
• R.array :arrays.xml for resource arrays
• R.integer : integers.xml for resource integers
• R.bool : bools.xml for resource boolean
• R.color :colors.xml for color values
• R.string : strings.xml for string values
• R.dimen : dimens.xml for dimension values
• R.style : styles.xml for styles
Gradle
Gradle: Gradle is an advance toolkit, which is used to manage the
build process, that allows to define the flexible custom build
configurations.
Lifecycle of Android App
States of Android Lifecycle
• OnCreate : This is called when activity is first created.
• OnStart : This is called when activity become visible to the user.
• OnResume : This is called when activity starts to interact with the
user.
• OnPause : This is called when activity is not visible to the user.
• OnStop : This is called when activity is no longer visible.
• OnRestart : This is called when activity is stopped, and restarted
again.
• OnDestroy : This is called when activity is to be closed or destroyed.
Guide To Install and Setup Android Studio
• Step – 1 :
Head over to https://developer.android.com/studio/#downloads to
get the Android Studio executable or zip file
• Step – 2 :
Click on the download android studio button .
• Step – 3:After the downloading has finished, open the file from
downloads and run it .
• Step – 4 :It will start the installation, and once it is completed, it will be
like the image shown below .
• Step – 5 :Once “Finish” is clicked, i
• Step – 6 :This will start the Android Studio.
• Step – 7:After it has found the SDK components, it will redirect to the
Welcome dialog box .
• Step – 8 :Now it is time to download the SDK components
• Step – 9 :Click on ‘Start new android project’ to build a new app.