From a39d13c1be8b09acc864b023dccf26f95c025031 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 22 Jun 2012 16:57:57 -0700 Subject: [PATCH] docs: move NDK into Download section Change-Id: I7c16b465c45ac4456f689ff81300f65f767acb12 --- docs/html/tools/sdk/ndk/index.jd | 730 +++++++++++++++++++++++++++++++++++++-- docs/html/tools/tools_toc.cs | 11 +- 2 files changed, 697 insertions(+), 44 deletions(-) diff --git a/docs/html/tools/sdk/ndk/index.jd b/docs/html/tools/sdk/ndk/index.jd index 956d939c1d6f..6be3168e88fe 100644 --- a/docs/html/tools/sdk/ndk/index.jd +++ b/docs/html/tools/sdk/ndk/index.jd @@ -16,7 +16,59 @@ page.title=Android NDK @jd:body -

Revisions

+ +
+ +
+ +

The NDK is a toolset that allows you to implement parts + of your app using native-code languages such as C and C++. For certain types of apps, + this can be helpful so that you may reuse existing code libraries written in these + languages and possibly increased performance.

+ +

Before downloading the NDK, you should understand that the NDK + will not benefit most apps. As a developer, you need to balance its benefits + against its drawbacks. Notably, using native code on Android + generally does not result in a noticable performance improvement, + but it always increases your app complexity. In general, you should only use the NDK + if it is essential to your app—never because you simply prefer to program in C/C++.

+ +

Typical good candidates for the NDK are self-contained, CPU-intensive operations that don't + allocate much memory, such as signal processing, physics simulation, and so on. When examining + whether or not you should develop in native code, think about your requirements and see if the + Android framework APIs provide the functionality that you need.

+ + +

Downloads

+ + + + + +

Revisions

The sections below provide information and notes about successive releases of the NDK, as denoted by revision number.

@@ -98,7 +150,7 @@ padding: 5px 0 0;

Note: To ensure that your applications are available to users only if their devices are capable of running them, Google Play filters applications based -on the instruction set information included in your application — no action is needed on your part +on the instruction set information included in your application ? no action is needed on your part to enable the filtering. Additionally, the Android system itself also checks your application at install time and allows the installation to continue only if the application provides a library that is compiled for the device's CPU architecture.

@@ -313,7 +365,7 @@ was called, rather than the total number of physically available cores. native features to the platform: @@ -169,15 +171,6 @@ class="en">MonkeyRunner -
  • Platforms
  • -- 2.11.0