This chapter describes how to build an environment for Android's bottom-up development, mainly including the Android application development environment,theandroid NDK development environment, and the build-up of a cross-compilation environment. developing, testing, and debugging Linux drivers,HAL programs require a lot of tools, including:
JDK6or the above version,Eclipse3.4or the above version,ADT,CDT,Android NDK, cross-compilation environment,LinuxKernel source code and so on. InstallationJDKThere are several ways in whichUbuntu LinuxThe method provided is particularly simple, justLinuxcommands can be installed under the terminal and do not need to be reconfiguredPATHenvironment variables. InstallationAndroid SDKis configuredAndroidThe first step in the application development environment is as follows:
DownloadSDK, GetAndroid-sdk_r16_linux.tarfile, copy toLinuxa directory in the file system, and thenLinuxThe terminal enters the directory and extracts, after decompression, you will see a directory of more than oneAndroid-sdk-linuxCatalogue, enterAndroid-sdk-linux/toolsdirectory, find aAndroidscript file and execute, installEclipseIn fact, it's easier to find the right version to download and install. Next up isADTinstallation and configuration, establishingAVD. InstallationAndroid NDKThe development environment has several steps: DownloadAndroid NDK,installationCDT, the command-line method compilesAndroid NDKprograms, importingAndroid NDKFor example, configureAndroid NDKintegrated development environment. Install the cross-compilation environment according to the download path or directly through the CD-ROM installation. In general, this chapter mainly describes the development of some development needs of the environment, according to book introduction can be practical operation.
http://home.cnblogs.com/u/zivjeli/
Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter II Summary