Android Deep Explore HAL with driver development
Chapter II
Build an Android Development Environment
Reading notes
A. the tools needed for Android bottom-up development
1, JDK6 or above version
2, Eclipse3.4 or above version
3. ADT(for Android applications)
4. CDT(used to develop Android NDK program)
5. Android SDK
6. Android NDK
7. Cross-compilation environment
8. Linux Kernel source code
9. Android Source Code
10. Serial Tool for debugging Development Board:minicom
Ii. installation of JDK
After downloading the JDK in the terminal input
# Gedit/etc/profile
After opening the profile, enter it at the end
Export Path=. : /developer/jdk6/bin : $PATH
Reload profile
# Source/etc/profile
You can use the echo $PATH command to view The value of the PATH environment variable.
Iii. building an Android application development environment
1. Install the Android SDK
Unzip Android_r16-linux.tar file:# TAR_XVF Android-sdk_r16-linux.tar
Enter the Android-sdk-linux/tools directory to execute the android script file to start installing the Android SDK .
Install the <android SDK installation directory >/platfrom-tools and <android SDK installation directory The >/tools directory joins the PATH environment variable:
# Gedit/etc/prodile
# Export Android_sdk_path=/sdk/android/android-sdk-linux
# Export path=.: $ANDROID _sdk_path/platfrom-tools: $PATH
Save to execute the next command:
Sourse/etc/profile
2. Install Eclipse
Two decompression file statements (zip format and tar.gz format)
ZIP Format File decompression statement:
Unzip Eclipse-sdk-win32-x86_64.zip
That is, unzip to unzip the file name
tar.gz Format File decompression statement:
Tar zxvf eclipse-jee-indigo-sr1-linux-gtk-x86_64.tar.gz
The tar zxvf plus the file name to unzip
3. Installing ADT
Start Eclipse , click "Help">"Install New software", Click "Add" in the name text box and enter "ADT" in the location Enter Https://dl-ssl.google.com/android/eclipse in the text box .
4. Configuring ADT
In eclipse click window > " perfernce ", click android sdk location " text box, enter android SDK install directory, click apple button, the current Span style= "FONT-FAMILY:CALIBRI;" >android SDK supported android Span style= "font-family: the song Body;" > versions are listed here.
5. Establishment of AVD
Before you run an Android application, you must create an AVD.
Iv. installation of the Android NDK Development Environment
The Android NDK cannot be run separately as an Android app and must be installed before using the android SDK.
V. Install the cross-compilation environment
Download and install directly
Vi. Summary
This chapter learns the configuration of the Android development environment in the Ubuntu Linux Environment .
http://www.cnblogs.com/qwhw/
Android Deep explore HAL and Driver Development Chapter II