Friday, February 1, 2013

Create first android application

There are two techniques that you can use to produce Android applications with a PC. The first uses the Android Software Development Kit (SDK). This lets you write code and helps you get it working in the Android environment. The second uses App Inventor, a Google Labs tool that's still in beta.
You also need to get your computer ready for the Android SDK. Start by installing a Java Development Kit for your version of Windows.
You also need to install Eclipse IDE for Java developers. When you install Eclipse it will check for the JDK. Also which is present in Android SDK.   With Eclipse up and running, you can download the Android SDK. Extract It.


Download Package Click on android sdk manager



After download done  Start building an apps.

 
Goto file ->new->android application project
Enter application name eg: sample





Your application is ready to build

You have MainActivity.java in src folder and layout file in res->layout-> activity_main.xml
Start building app using two file.

For running application you need android virtual device i.e emulator

Create emulator by click Android virtual device manager in eclipse




Simply run as android application chose created emulator



Your app is ready. The .apk file is in bin folder


No comments:

Post a Comment