Developing Android Program configuration development environment in C + + language

Source: Internet
Author: User
Tags android sdk manager

If you are a C + + language of death, you like the C + + language to a paranoid state, if you do not want to learn the Java language, or you hate the Java language, if you think the Java Virtual machine memory consumption too much and perform inefficient. If you pay too much attention to the execution efficiency of the Andoird program, the speed of the Android program is too sensitive, like the use of manual files to control the memory and thread resources, if you in the other platform under the C + + language to develop a program, want to migrate to the Android platform, The purpose of this tutorial is to teach you how to develop an Android program in the C + + language and not use any other language in order to meet your many quirks.

How to configure the development environment.

1.JDK

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

Suggested version 1.7, don't be afraid. I guarantee that the Java language will not be used.

2.Android SDK

Http://developer.android.com/sdk/index.html

It is recommended to download the bundle version, which contains the ECLIPSE,CDT and ADT

If you like self-abuse, you can download SDK Tools only, then install Eclipse and ADT.

https://www.eclipse.org/downloads/

Http://developer.android.com/sdk/installing/installing-adt.html

Start Eclipse launch Android SDK Manager to add the part you need.

Note: Nativeactivity is supported from Andoroid 2.3 (API level 9) Please use the Android SDK Platform above this version.

In the process of installation if you find that the link is not on the server, this decision is not Google's fault, specific reasons, you know, the solution is to try a few more times.

Now we can develop the Android program in the Java language, if you are not paranoid, you regret, you can stop here to learn the Java language. But that's not what paranoia wants.

3.GCC

Windows Platform Installation Cygwin

Http://www.cygwin.com

Do not install by default or all, just add the Devel section.

Linux platform If you're a Linux user claiming to be a C + + language, you won't tell me you won't be installing GCC. The most convenient way is sudo apt-get what. I can't remember, insisted on after a few years Ubuntu 10.04LTS, finally gave up the Linux desktop version, now the Linux desktop version really makes people egg pain.

Mac platform, or just go to the App Store and install Xcode. At least you can also experience the original OBJC is more perverted.

Now we can develop the Hello world of C + +, but that's not what we want.

4.NDK

Http://developer.android.com/tools/sdk/ndk/index.html

Finally, set the NDK path in Eclipse's Preferences PREFERENCES->ANDROID->NDK

OK, everything is ready, start the Android C + + tour.

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.