From Fedora Project Wiki

Line 33: Line 33:


== Install Android SDK ==
== Install Android SDK ==
download android-sdk_r05-linux_86.tgz from <nowiki>http://developer.android.com/sdk/index.html</nowiki>
#download android-sdk_r05-linux_86.tgz from <nowiki>http://developer.android.com/sdk/index.html</nowiki>
 
#unpack it in your home directory into ~/AndroidSDK
unpack it in your home directory into ~/AndroidSDK
#add into path environment variable ~/AndroidSDK in .bash_profile file in your home directory.
 
add into path environment variable ~/AndroidSDK in .bash_profile file in your home directory.
 
For example:
For example:
<nowiki>
<nowiki>
Line 44: Line 41:
export PATH
export PATH
</nowiki>
</nowiki>
 
#logout and login back to apply path change
logout and login back to apply path change
 


== Android Emulator ==
== Android Emulator ==

Revision as of 12:01, 2 April 2010

This is placeholder for documentation about Fedora used as Android development box


Abstract

This page should provide "how-to" document about using Fedora Linux for developing applications for Android platform.

This document will cover requirements, steps how to go from source code till final application and how to use Android Emulator for testing of application.

Target Fedora version

F-12 and higher

Requirements

  • Eclipse IDE (3.5 and higher is needed because of ADT plugin dependency on Equinox P2)
yum install eclipse-jdt
  • Android SDK

Download SDK from page

http://developer.android.com
  • ADT plugin for Eclipse
    • Start Eclipse, then select Help > Install new software...
    • Click on the Available Software site hyperlink.
    • In Available software sites dialog, click Add....
    • In the Add Site dialog that appears, enter a name for the remote site (for example "Eclipse Update") in the "Name" field. In the Location field, enter this URL:
http://download.eclipse.org/releases/galileo/

This will add dependency which are required for ADT plugin.

    • Again click on Add button and enter a name for the another remote site (for example, "Android Plugin") in the "Name" field. In the "Location" field, enter this URL:
https://dl-ssl.google.com/android/eclipse/ 

Note: If you have trouble acquiring the plugin, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).Click OK.

    • Back in the Available Software view, you should now in see in drop down list "Android Plugin", select it and in box below see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.
    • In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
    • Restart Eclipse.

Install Android SDK

  1. download android-sdk_r05-linux_86.tgz from http://developer.android.com/sdk/index.html
  2. unpack it in your home directory into ~/AndroidSDK
  3. add into path environment variable ~/AndroidSDK in .bash_profile file in your home directory.

For example: PATH=$PATH:$HOME/AndroidSDK export PATH

  1. logout and login back to apply path change

Android Emulator

AVD device


  1. cd into the ~/AndroidSDK directory and run tools/android to configure and create your first Android Virtual Device.
  2. Go to "Available Packages", select components for just those versions of Android you want to work with. For example:
    • SDK Platform Android 2.1
    • Documentation for Android SDK
  3. Click on "Install selected", then click on "accept all" and confirm with clicking on "Install". This will start component installation, when it will be done, click on close. When this will be done, we could proceed with creation of AVD device itself.
  4. Go to "Virtual Devices", Click on "New", this will open screen where you need to specify SD card size (I will use 62MiB), name of device (I will use "android_dev1", target (Android 2.1, if you want to develop for different target, you need to go to step 2 and install SDK platform for different version)

Hello Fedora

--Hpejakle 11:25, 2 April 2010 (UTC)