Tuesday, February 14, 2012

Android Emulator

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


You can choose appropriate Android os version, screen size and environment for compatibility testing, you can say it provide first lavel of different environment in which you can check your application behavior.

Emulato Vs Simulator:
An emulator generally is a piece of hardware used for tests; it is self-contained, and is able to be hooked to some kind of development
environment.

A simulator is a piece of software that duplicates as precisely as possible the processor so you can "run" your code to see if it is correct. Usually simulators are developped for new architectures to test them out before it is committed to silicon. Occasionnally, a vendor will let customer have access to the simulator to help speed development for that architecture.

Emulator Installation:

The Android Emulator requires Java to run, so if you don’t already have Java installed on your computer, download it from the link below and install as normal.

1. Download the Android SDK from website, after selecting you operating system.

2. Extract the file on appropriate location.

3. In Windows, run the SDK Setup.exe program to get started running Android on your PC.

4. The SDK will check Google’s servers for available packages.

5. Now, the Package Installer will open. You can choose what you want to install, and then click Install to begin installing the Android emulator on your computer.

6. By default, all of the SDK platforms, samples, and APIs will be selected for install. This can take quite a while to download, as several versions of Android are currently available. If you only want to play around with Android, choose the version you want. You’ll want the SDK Platform Android your.version. Then click the Reject bullet on all the other entries, and click Install. We wanted to try out the latest Android 2.2 as well as the older 1.5, so we downloaded both of them.

7. Once you’ve started installing, you’ll see a window showing the download and installation progress. This may take a few minutes, depending on your Internet speed.


Setup an Android Emulator:

1. Once the download is completed, you can setup an emulator to test drive Android on your computer. Select the Virtual Devices from the left menu, and then click the New button on the right.

2. Enter a name for your virtualized Android, and select the version of Android you want to use from the drop-down menu. This will only show the version you installed previously, so you may only see one version listed depending on your selection.

3. Enter a size under the SD Card entry; this is a virtual SD card that’s actually an IMG file that Android will use to store your settings and files in. Then, select a screen size from the skin options. The default is a standard, Nexus One-type display, while the others are different sizes including even a BlackBerry-style device.

4. Click Create AVD when you’re finished.

5. The program may appear to freeze while it is creating the AVD, so just wait until you see the confirmation window.

6. You’re now ready to run Android on your PC! Select your new virtual Android, and click Start on the right.

7. You can choose to scale the display if you’ve chosen a larger screen size than your monitor will fit, and then select Launch.

Please refer to the website for more details

http://www.howtogeek.com/howto/21831/how-to-test-drive-google-android-on-your-pc-without-buying-a-phone/

No comments:

Post a Comment