Chapter II: Building an Android Development Environment
What tools are needed for Android bottom-up development:
· JDK6 or the above version;
· Eclipse3.4 or the above version;
· ADT (for development Android applications);
· CDT (for development Android NDK procedures);
· Android SDK ;
· Android NDK ;
• Cross-compiling environment;
· Linux kernel source code;
· Android source code;
• Serial tool for debugging the Development Board:minicom.
Build an Android development environment:
(i) Installing the JDK:
Download the JDK 's tarball directly and unzip it, then enter it on the Linux terminal
# Getit/etc/profile
After you open the profile file, in the terminal input
Export path=.:/ (file compression directory) /bin: $PATH
After You save the profile file, enter it in the Linux terminal
# . /etc/profile
(ii) build an Android application development environment
1. Install Android SDK: Download Android SDK, get a tar file, After the terminal enters this directory, execute the command:
#tar-XVF Android-sdk+r16-linux.tar
2. Install Eclipse
#tar ZXVF Eclipse-sdk-3.7.1-win32-x86_64.zip
3. installing ADT
4. Configuring ADT
5. creating an AVD
(iii) installation of the Android NDK development environment:
1. Download Android NDK
#tar-XVF Android-ndk-r7-linux-x86.tar.tar
2. installing the CDT
3. command-line compiling Android NDK program
Ndk-build Command
4. examples of importing Android NDK
5. Configure the Android NDK integrated development Environment
(iv) Installation of cross-compilation environments
The CPU of the X86 architecture employs a complex instruction set computer. the CPU of the ARM architecture uses a thin instruction set computer. Since the CPUs of both architectures use different instruction sets, developing on the X86 architecture can be run on ARM A program on the schema must use a cross-compiler. Usually the cross compiler and related tools contain many executables and resources such as a large number of shared libraries and header files, a collection of which is called a cross-compilation environment.
Chapter II: The second chapter builds the Android development environment