Step 1 - System Requirements : You will be delighted, to know that you can start your Android application development on either of the following operating systems −
- Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit).
- Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
- GNOME or KDE desktop
- Java JDK5 or later version
- Java Runtime Environment (JRE) 6
- Android Studio
Step 2 - Setup Android Studio
Overview
Android Studio is the official IDE for android application development.It works based onIntelliJ IDEA, You can download the latest version of android studio from Android Studio Download, If you are new to installing Android Studio on windows,you will find a file, which is named as android-studio-bundle-135.17407740-windows.exe.So just download and run on windows machine according to android studio wizard guideline.If you are installing Android Studio on Mac or Linux, You can download the latest version from Android Studio Mac Download,or Android Studio Linux Download, check the instructions provided along with the downloaded file for Mac OS and Linux. This tutorial will consider that you are going to setup your environment on Windows machine having Windows 8.1 operating system.
Installation
So let's launch Android Studio.exe,Make sure before launch Android Studio, Our Machine should required installed Java JDK. To install Java JDK,take a references of Android environment setupStep 3 - Create Android Virtual Device
To test your Android applications, you will need a virtual Android device. So before we start writing our code, let us create an Android virtual device. Launch Android AVD Manager Clicking AVD_Manager icon as shown belowHello Word Example
Before Writing a Hello word code, you must know about XML tags.To write hello word code, you should redirect to App>res>layout>Activity_main.xml xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
android:text="@string/hello_world"
android:layout_width="550dp"
android:layout_height="wrap_content" />
Need to run the program by clicking Run>Run App or else need to call shift+f10key.Finally, result should be placed at Virtual devices as shown below