As you know the native language for Android development is JAVA. In this course we will use "Android Studio" for development. It is new Android development environment based on IntelliJ IDEA. You can also use Eclipse for development.
For setting up new environment, you need to follow following steps.
A Java Development Kit (JDK) is a program development environment for writing Java applets and applications. It consists of a runtime environment that "sits on top" of the operating system layer as well as the tools and programming that developers need to compile, debug, and run applets and applications written in the Java language.
ii) Click on downloaded setup and follow the setup wizard to install Android Studio.
On some windows system the launcher script does not find where java is installed. If you have installed the JDK and you are still facing issue then you need to set the Environment Variable indicating the correct location.
Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.
Once the setup will be finished, start the Android Studio from program file. Now you can write and Debug application here.
The android SDK is composed of modular packages that you can download separately using the Android SDK Manager. You can launch the SDK manager using Tools > Android > SDK Manager. You can also click the shortcut available on the toolbar.
Click on the SDK Manager and in the popup window you can install and update the packages.
Simply select packages that you want to install and click on Install Button. The SDK manager downloads the required package and install them automatically.
For testing your application you have to prepare Virtual Device for it. You can create multiple virtual devices for testing your application for multiple devices. For creating the new virtual device click on Tools > Android > AVD Manager. You can also open AVD Manager by clicking on the short cut available on toolbar.
In the popup window you can see the all available Virtual Devices. In the Picture below you can see there are two virtual devices already there. If you don't have any virtual device yet, click on the "New…" but to create new Virtual device.
For creating new virtual device enter the AVD Name, Device Type and Target Android version. You can do other setting as per your requirement.
Enter the sufficient information and press the OK button. Now you will be able to see your newly created Virtual Device in AVD Manager window.
After preparing the development environment and creating Virtual Device, now your Android Studio is ready for development and testing your application.