Monday, 12 March 2012

[ CentOS 5 - Desktop Env ] Create a test project ( Part 7 )

Android Application Development Environment
Build Android Application Development Environment


Step [1] Install Eclipse first. See here.

Step [2] Download android-sdk from following site.
http://developer.android.com/sdk/index.html
Step [3] Extract the dowloaded file under any directory. (on this example, extract it under /usr/local like follows)
Step [4] Add PATH in /etc/profile like follows (last line). After adding, run a command "source /etc/profile".
Step [5] Start Eclipse and open [Help]-[Install New Software].
Step [6] Click "Add" button.
Step [7] Input any name in Name field and input "https://dl-ssl.google.com/android/eclipse/" in Location field.
Step [8] After cliking "Select All" button, Go Next.
Step [9] Click "Next" to go next.
Step [10] Check a box "I accept xxx" to agree lisence terms.
Step [11] Installation starts. Following warning is shown during installation, then Click "OK" to continue.
Step [12] Installation finished. Click "Restart Now".
Step [13] Open [Window]-[Preferences].
Step [14] Select Android on the left and Click "Browse" button on the right and specify a directory that is located Android-sdk.
Step [15] back to the main screen and open [Window]-[Android SDK and AVD Manager], a waring is shown then ignore and go next.
Step [16] Check a box "https xxx" on the right.
Step [17] Click "Install Selected".
Step [18] Check a box "Accept All" and Click "Install" button. After finishing installation, Building Android Application Development Environment completed.
Create a test project
Create a "Hello World" application for a test.

Step [19] Start Eclipse and open [Window]-[Android SDK and AVD Manager], and then select "Virtual Devices" on the left section and Click "New" on the right section.
Step [20] Input any parameter you like and Click "Create AVD" button.
Step [21] Just created.
Step [22] Back to the main screen and open [File]-[New]-[Android Project].
Step [23] Input any parameter and go next.
Step [24] A project is created. (the author restart Eclipse after creating it because an error occured)
Step [25] Click Android Application with right button and select like follows.
Step [26] Android emurator starts.
Step [27] Just working Hello World application.