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.

4

2. Creating An Android project

Select Start a new application project from Android Studio welcome screen.

Enter an application name –

5

Select min-sdk version –

6

Select an Activity –

7

Enter activity name –

8

Click the Finish button to create the project.

9

Reference of Android Application –

hello5

  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 MainActivity.java 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 .

10

Android Studio installs the app on your connected device and starts it.

layout-2016-02-22-210740

Congratulations!!! you have developed your first Android Application.

 

Subscribe To Android Learning

Subscribe To Android Learning

Join our mailing list to receive the latest android tutorials from our site.

You have Successfully Subscribed!

Pin It on Pinterest

Shares
Share This