ff

Recent Posts

Saturday, September 7, 2013

Let’s start Android Development with Android Studio.


First of all you should download the android studio from official android website. Use the following link.



Android Studio download bundle comes with latest android SDK. If you have previously downloaded SDKs you should change the sdk path using following steps
1.       Press F4 into Project Structure
2.       Left > SDKs
3.       Press +, add another sdk

This can also done from the quick start window, choose Configure, then choose Project Defaults, and then choose Project Structure. Then on the left under Platform Settings choose SDKs. Then to the right of that choose the current android platform, mine was Android 4.2.2 Platform, and delete it using the red minus button at the top, then add a new android platform using the green plus button at the top and point it to your current SDK folder and that is it.
Once you download the Android Studio you should install it and no need to install external plugins as you previously done in “eclipse” IDE. But to run the project you should have a Virtual device or a Real handset.
How to create a Android Virtual Device
       Go to tools à Android à  AVD Manager



Then you will get the AVD Manager dialog.



 Click on New Button.
Then fill the "Create AVD"  data to create the device that you want



Run the Android Project  on a Real Device

First you should have install  your phone driver files in your computer.  For Samsung phones you can install the Samsung kies and you will accomplish the requirement
then you must connect your device to the computer using a USB cable
after that enable and allow the usb debugging in your phone.
Go to Settings à Developer Options à check the button “allow usb debugging” 




Create your First Project with Android Studio

Go to File à new Project

Then you will get following window.. and fill the rest of details.



Once you create the Project, you can run the project using “Shift+F10”  
It will start the default AVD (Android Virtual Device ) and after the boot , your project will be automatically load.
If you want to run your project on your Real Device, you should change the Run Configuration shown as following images.

Change the target device to USB.



Now run your project. It will run on your Android Phone



That's all for this tutorial.. make your comment if there anything to know..

Cheers.. (Y)





0 comments :

Post a Comment