Chapter 1 – Getting Started with Android Programming

1. Setup the Development Environment.

Step 1 – Setup Java Development Kit (JDK)

Download the latest version of JDK from Oracle’s Java site: Java SE Downloads.
After you have downloaded and installed the Java Development Kit (JDK), you must set the JAVA_HOME environment variable to point to the JDK installation directory.
How to set java_home ?

Step 2 – Setup Android Studio

Android Studio is the official IDE for android application development.It works based on IntelliJ IDEA, You can download the latest version of android studio from Android Studio Download.
After install Android Studio, you must get finish button and it gonna be open android studio project with Welcome to Android Studio message.

2. Creating An Android project

Select Start a new application project from Android Studio welcome screen.
Enter an application name –
Select min-sdk version –
Select an Activity –
Enter activity name –
Click the Finish button to create the project.

Reference of Android Application –


  1. build :-  This contains the auto generated file which are as Aidl,Build configuration, and R(R.JAVA)
  2. Libs :-  This is a directory to add the libraries to develop the android applications
  3. src :-  This contains the .java source files for your project. By default, it includes an source file having an activity class that runs when your app is launched using the app icon.
  4. res :-  This is a directory,which is having drawable,layout,values,and android manifest file
  5. res/drawable-hdpi :-  This is a directory for drawable objects that are designed for high-density screens.
  6. res/layout :-  This is a directory for files that define your app’s user interface.
  7. res/menu :-  This is a directory for menu objects that are designed to make menu in android applications
  8. res/values :-  This is a directory for other various XML files that contain a collection of resources, such as strings and colors definitions.
  9. AndroidManifest.xml :-  This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.

3. Running the app

  1. Select one of your project’s files and click Run from the toolbar.
  2. In the Choose Device window that appears, select the Choose a running device radio button, select your device, and click OK .

Android Studio installs the app on your connected device and starts it.
Congratulations!!! you have developed your first Android Application.

About the author

Akshay Raj

View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *