Sunday 3 February 2013

Android Installation

Android Installation


1. Options


You have different options to install the Android development tools. The simplest way is to download a full packaged pre-configured Eclipse.

For other options please see Android installation

2. Standalone ADT installation


Google provides a pre-packaged and configured Eclipse based Android development environment. The following link allows to download a archive file which includes all required tools for Android development.
http://developer.android.com/sdk/index.html 

Extract the zip file and start Eclipse from the eclipse folder via the eclipse native launcher, e.g. eclipse.exe under Windows.

Android virtual device - Emulator


1. What is the Android Emulator?


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 of them with different configurations.

These devices are called Android Virtual Device and you can start several in parallel.




2. Google vs. Android AVD





During the creation of an AVD you decide if you want an Android device or a 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. Google Maps you must run this application on an AVD with Google API's.






3. Emulator Shortcuts





The following shortcuts are useful for working with the emulator.

Alt+Enter Maximizes the emulator. Nice for demos.

Ctrl+F11 changes the orientation of the emulator.

F8 Turns network on / off.






4. Parameter





The graphics of the emulator can use the native GPU of the computer. This makes the rendering in the emulator very fast. To enable this, add the GPU Emulation property to the device configuration and set it to true.

emulator_gpu10

You can also set the Enabled flag for Snapshots. This will save the state of the emulator and will let it start much faster. Unfortunately currently native GPU rendering and Snapshots do not work together.

Android devices do not have to have hardware button. If you want to create such an AVD, add the Hardware Back/Home keys property to the device configuration and set it to false.

hardwarebutton10

Related Topics : Android Development Tutorial (Based on Android 4.1) class-1

Android Development Tutorial (Based on Android 4.1) class-2


Android Development Tutorial (Based on Android 4.1) class-3


Android Development Tutorial (Based on Android 4.1) class-4


Android Development Tutorial (Based on Android 4.1) class-5

Android Development Tutorial (Based on Android 4.1) class-6

No comments:

Post a Comment