Android Reading notes two

Source: Internet
Author: User

This chapter describes the need for Android applications and the Android NDK program to test Linux drivers, so the tools needed must be well equipped. And there are some requirements for the version of the tool, Jdk,eclipse,adt,cdt,android sdk,android NDK, cross-compilation environment, Linux kernel source code, Android source code, tool for debugging the Development Board serial Port Minicom, Of course the Development Board is also required.

Core steps:

1.JDK installation, need to be installed under Ubuntu. First to download, then extract, in the terminal Input command #gedit/etc/profile to set the PATH environment variable, in the open file last input export path=.:/ Developer/jdk7/bin: $PATH

Note that the JDK here is written on its own downloaded version and its own installed path, just for example. It then reloads the profile file and introduces another simple installation method.

2. Build the Environment

(1) Download and install the Android SDK

After unzipping adds a directory and then enters Android-sdk-linux/tools, there will be an Android script file that he is installing online.

(2) Install Eclipse, relatively simple, download the decompression installation can

(3) Installing ADT

On-line installation, offline installation;

(4) Configuring ADT

(5) Establishment of AVD

Creating an AVD is the creation of an emulator for the specified Android version.

3. Install Android NDK Environment

(1) Download Android NDK

Also download the latest version of the installation package, unzip, and add its installation directory to the PATH environment variable, ibid.

(2) Installing the CDT

The CDT is a plug-in that Eclipse uses to develop A/C + + program that, when installed to develop both Android applications and Android NDK programs in Eclipse, is also available for online and offline installations, and is easier to do offline.

(3) command line compile Android NDK program

The Android NDK source code is automatically compiled at terminal input ndk-bulid.

(4) Examples of Android NDK that can be imported

(5) Configuring the Android NDK integrated development environment

4. Installing the Cross-compilation environment

You can download the integrated or make your own.

http://www.cnblogs.com/xxyue/

Android Reading notes two

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.