Sunday, December 5, 2010

Create Android Emulator

The Android SDK includes a mobile device emulator -- a virtual mobile device that runs on your computer. The emulator lets you prototype, develop, and test Android applications without using a physical device.

The Android emulator mimics all of the hardware and software features of a typical mobile device, except that it can not receive or place actual phone calls. It provides a variety of navigation and control keys, which you can "press" using your mouse or keyboard to generate events for your application. It also provides a screen in which your application is displayed, together with any other Android applications running.

Steps to create a emulator

Open eclipse
Window>Android SDK and AVD Manager

It will shows the Android SDK and AVD Manager
In that Virtual Device click that new Button

 Fill the name and all.
Select the appropriate target. Here we select the latest Android 2.2 -API Level 8
It's always good to add sdcard. Because later we may use app that access sdcard
For that click that new botton
After completing it will look like this
Now it is ready. Click on 'Create AVD'
Then it will shows the summery
By pressing OK it will be added in AVD manger
You can see the AVD_2.2, the name we given to the AVD. Then by pressing start we can start running

Tuesday, November 2, 2010

Setup Your Eclipse For Android

After you download the plug-in
  1. Unzip the plug-in
  2. Copy the contents of 'plugins' folder to 'plugins' folder of eclipse
  3. Copy the contents of 'features' folder to 'features' folder of eclipse
  4. Restart the eclipse
Ok Now we added the plug-in there. You need to do the following in order to work with android
  • Select Android SDK :
    Window > Preferences >

  • In that, select the Android
    There you will see the SDK location, There show the folder where you have downloaded the Android SDK
    For me it was 'D:\android-sdk-windows-1.6_r1'
  • When you press the Apply button you will see the android versions available there.

OK, now your eclipse is ready for android.

From where to start

Android is a mobile operating system that was developed by android Inc., which was purchased by Google. It is a modified version of the Linux Kernel. The Android SDK is the one which provide the tools and APIs necessary to develop applications in Android.

Android use the Java Programming language. If you know to write simple java programs, it is enough for you to start the Android development. In this it also use XML. It is very easy to understand.

The android has a wonderful documentation where you will get all the details.
Android Developer Guide

The best tool for developing android is eclipse. Eclipse have very useful plugin for that.
To start android developing it needs the following

  1. Android SDK
  2. Eclipse
  3. Eclipse Android plug-in