In May 15th, during Google’s I/O developer conference, a new developer suite called Android Studio was announced. It is a very powerful IDE based on the famous IntelliJ IDE. Android Studio offers a lot more options for Android Developers on top of InteliJ’s fantastic features and deep code analysis. And it seems that it is aimed to the Android Professionals that want to make the process much faster and be more productive in general.
In this example we are going to see how to install Android Studio, as well as creating and Launching a new Android Project with it.
1. Download and Install Android Studio
Android Studio comes with everything you need in order to start developing Android Applications instantly. If you already have Android SDK Manager and Android Virtual Devices (AVD) already installed, that’s fine; it will work with those, no problem whatsoever.
Go to the home page of Android project to download the Bundle for your platform:
The Installer will install Android Studio 0.1.1, and you can update it later from inside the application.
When the download is finished, launch the installer:
And specify the installation folder:
When the installation is finished check the option to Start Android Studio and click Finish:
2. Create a new Android Project
When Android Studio launches it will prompt you if you want to import settings from a previous installations ( I guess that this would apply for previous installation of IntelliJ with or without the Android Bundle …).
After that step, you will find yourself in Android Studio Quick Start Window. You can specify many settings and configuration options from there, but let’s go ahead and select “New Project”:
Then you have to specify the Project Name, the main Package Name, as well as the target platforms and also the Theme of the application. You can also choose to create a new Activity and select a custom Launcher Icon:
Then you can select and customize your Launcher Icon:
Now you can create a new blank Activity for your project.
You have to specify a Name for the activity and the corresponding Layout XML file Name.
All the above should seem familiar, if you’re using Eclipse IDE for Android Development.
4. Run the Application
After clicking finish you will find yourself in the IDE. This is how it looks like:
Now you can select Help -> Check For Updates to update Android Studio to the latest available version.
You can go ahead and click the Run Button to run your application. You will be prompt to choose the device you want to install your Application to. I have already installed AVDs in my system so I can work with those. This should come really handy when you have multiple real devices connected to your system and you want to install and run the applications on them as well:
5. Live layout Editing
One of the most impressive characteristics (at first glance …)of this IDE is the new live layout editing where you can preview your user interface in a number of real devices , both smartphones and tablets, on the fly as you are editing the code. You can also choose to preview your code in different orientations. It looks and works great:
This is a video with a small preview of Android Studio’s numerous features:
7. Download the Android Studio Project
Download the Android Studio Project of this tutorial: HelloAndroidStudioProject.zip
This was just an introduction to Android Studio that will get you up and running with Android Studio. I’m sure that there are tons of features to explore. Hope you are excited with Android Studio!