If you are new on Android chances are you have heard about Android Studio. If you have not here is introductory post.
Google introduced Android Studio which by far is the best IDE for Android. Eclipse is still around, but I am sure it will soon start to fade away as the tool of choice for Android development.
Android Studio has all the goodies of modern IDE intellisense, fast startup, good and clean layout, support for various plugins to customise, etc. The best part is it uses Gradle tool chain. I found Gradle very simple to read compared to earlier complex build configuration files.
In this post we will look at running first application on Android Studio --
- Installing
- Goto https://developer.android.com/sdk/installing/studio.html
- Download the updated SDK+IDE package
- After download unzip/untar the *.zip/*.tar file that you downloaded.
- Now you have Android Studio with most of the latest Android tools integrated.
- Open SDK manager to launch Android SDK Manager (Tools->Android->SDK Manager)
- Ensure all the required sdks and images are downloaded.
- Open AVD Manager (Tools->Android->AVD Manager) to create image for device of your choice
- Now you are ready for running your application
- Running
- After you launch Android Studio you will be prompted with dialog box.
- Select New Project and follow screens. Select Master-Detail on the 3rd Screen.
- Now you can compile and run the application using Play button or Run ->Run.
- This will launch window for selecting device. It can be emulator or Device.
- You can see logs in logcat inside Android Device Monitor (tools -> Android -> Android Device Monitor.)
- That's it. We are ready for more.
- Next post we will look at running Android Instrumentation Tests with Android Studio.

No comments:
Post a Comment