Emulator and Android Device Debug

The emulator launches a window on the development computer that looks like an Android phone and runs actual ARM instructions. Note the initial startup is slow, even on high-end computers.Although there are ways to configure the emulator to try to emulate many aspects of a real Android device such as incoming phone calls, limited data rate, and screen orientation change, some features (such as sensors and audio/video) are not the same.The emulator should be considered a useful way to validate basic functionality for devices not available to the user. For example, the tablet screen size can be tried without purchasing a tablet.

Note that a target virtual device must be created before the emulator can properly run. Eclipse provides a nice method to manage Android Virtual Devices (AVD).A handy list of keyboard shortcuts for emulator functions is shown in image 1.1.
Android OS Emulator Controls
Image 1.1
In general, the first testing is best done with an Android phone.This ensures full functionality and real-time issues that cannot be fully recreated with the emulator. For an Android device to be used as a developer platform, just hook it to the USB using the USB cable that came with the phone and ensure the USB driver is detected (this is automatic with a MAC; the drivers are included with the SDK for Windows; and see Google’s web page for Linux).

Some settings on the Android device need to be changed to enable developer usage. From the home screen, select MENU → Settings → Applications → Unknown sources and MENU → Settings → Applications → Development → USB debugging to enable installation of applications through the USB cable.

0 komentar:

Posting Komentar