MY mENU


Monday 13 February 2012

Emulator,Logcat and AVD in Android


The Android Development Tools (ADT) include an emulator to run an Android system. The emulator behaves like a real Android device (in most cases) and allows you to test your application without having a real device.
You can configure the version of the Android system you would like to run, the size of the SD card, the screen resolution and other relevant settings. You can define several devices with different configurations.
Via the emulator you select which device should be started, you can also start several in parallel. These devices are called "Android Virtual Device" (AVD).
The ADT allow to deploy and run your Android program on the AVD.

During the creation of an AVD you decide if you want an Android device or an Google device.
An AVD created for Android will contain the programs from the Android Open Source Project. An AVD created for the Google API's will also contain several Google applications, most notable the Google Maps application.
If you want to use functionality which is only provided via the Google API's, e.g. Cloud2DeviceMessaging or Google Maps you must run this application on an AVD with Google API's.
(Shortcuts for Emulator
Alt+Enter Maximizes the emulator. Ctrl+F11 changes the orientation of the emulator. F8 Turns network on / off.)

Logcat:
The "LogCat" View shows you the log messages of your Android device and help you analyze problems. For example Java exceptions in your program would be shown here. To open this view, select Window → Show View →Other → Android → LogCat.

No comments:

Post a Comment