Installing Android Studio
There is some prerequisite software and hardware requirement which you should know before installing Android Studio. Android SDK requires at least minimum version of Windows XP with the 4GB of RAM of PC. Also you need to installed JDK(Java Development Kit). When I was writing this article the best version 1.8 of JDK was available.
If you have already installed JDK and you want to check the version of JDK. Just open command prompt by Run > cmd from start menu and type “java -version” see the below image.
If you found older version of Java or you don’t have installed JDK then you can get latest version of JDK from the Oracles official website. See the link http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Download the apropriate version of JDK and install it. After installing JDK you have to set JAVA_HOME environment variable. To set environment variable Go to System properties > Environment Variables > System vaiables > New and set the path for JAVA_HOME. See the image below.
Now go the Google Developer Link (http://developer.android.com/sdk/index.html) and download Android Studio setup. See the image below.
Installation steps :
1. Double Click on Android Studio setup exe.
2. Click on next button to continue setup.
3. Choose the components to install. If you dont have installed android sdk before then select all the components. Android sdk is the collection of all the API versions of the Android SDK. With Android Verual Device you can create android emulators to test application without actual device required. And HAXM is helps emulator to run faster. To know about more HAXM visit https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
4. In the next screen select the installation location for Android Studio. If you have already installed android SDK the set the location for sdk where you installed. If not then take it default or you can choose where you want.
5. Set the RAM configuration and continue.
6. Choose start menu folder to created shortcuts and start installaction.
7. Once installaction process done click on finish. And installation is done.
Updating Android SDK
Before start working with Android Studio make sure you have updated you Android SDK.
To update Android SDK open SDK Manager where you installed and select necessary API and tools which you want and click on install packages.
Once you done with updating packages close the SDK Manager.
Creating New Project
Here you can see how to create new Android Project in few steps.
1. Run Android Studio from Start Menu > Android Studio > Android Studio.
2. Click on Start a new Android Studio project.
3. Give the application name, your domain for package name and project location to generate project files and folder.
4. Select platforms for targeted devices.
5. Here you will find sample project templates. Select any template which is match with your requirement. In my case I am going to select Black Activity as I want blank project only.
6. Set the names for Activiy, Layout, Title and Menu and click on finish.
7. Wait for few seconds until project gets created.
8. Once project created you will see the project created with Java and XML file for Layout with basic code sample.