Saturday, November 12, 2011

Installation ANDROID


The following assume that you have already Eclipse installed. For details please see Eclipse Tutorial .

1. Android SDK

Download the Android SDK from the Android homepage under Android SDK download . The download contains a zip file which you can extract to any place in your file system, e.g. I placed it under "c:\android-sdk-windows" .

2. Eclipse

Use the Eclipse update manager to install all available plugins for the Android Development Tools (ADT) from the URL https://dl-ssl.google.com/android/eclipse/ .

3. Configuration

In Eclipse open the Preferences dialog via Windows -> Preferences. Select Android and enter the installation path of the Android SDK.





Select Window -> Android SDK and AVD Manager from the menu.


Select available packages and select the Android 2.3.3 (API10) version of the SDK.



Press "Install selected" and confirm the license for all package. After the installation restart Eclipse.

4. Android Source Code

The following step is optional.
During Android development it is very useful to have the Android source code available as Android uses a lot of defaults.
Haris Peco maintains plugins which provides access to the Android Source code code. Use the Eclipse update manager to install two of his plugins. Update site: "http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update" and "http://adt-addons.googlecode.com/svn/trunk/binedit/com.android.ide.eclipse.binedit.update".
More details can be found on the project website .  


Create an Android Emulator Device


The Android tools include an emulator. This emulator behaves like a real Android device in most cases and allow you to test your application without having a real device. You can emulate one or several devices with different configurations. Each configuration is defined via an "Android Virtual Device" (AVD).
To define an AVD press the device manager button, press "New" and enter the following.


































































We will select the box "Enabled" for Snapshots. This will make the second start of the virtual device much faster.
At the end press the button "Create AVD".This will create the device and display it under the "Virtual devices". To test if your setup is correct, select your device and press "Start".
After (a long time) your device should be started.


No comments:

Post a Comment