1

Are NDK features OS dependent? For example, if I have Gingerbread 2.3, can I only use NDK features for 2.3 and below, or can I take advantage of the latest fixes and features the NDK provides?

The main reason I'm asking is because it seems like the NDK is a completely different beast than the SDK, and due to the nature of C/C++ and the underlying internals of the OS should be cross version compatible.

zeboidlund
  • 9,731
  • 31
  • 118
  • 180

1 Answers1

2

Unfortunately it is as version-dependent as SDK. Each release of NDK bundles an ever-growing list of platforms. Typically, ndk-build chooses the platform according to android:targetSdkVersion as defined in AndroidManifest.XML.

Alex Cohn
  • 56,089
  • 9
  • 113
  • 307
  • So if there's a bug fix, it's only applicable to the latest version of the SDK/NDK/OS? – zeboidlund Sep 16 '12 at 21:07
  • Not necessarily; some bugs in older NDK may be fixed for all platforms. A good example - there was a problem with compilation under cygwin in r4a, which was fixed in r4b. – Alex Cohn Sep 17 '12 at 04:34
  • Another example: r8 introduced the 4.6 toolchain for arm. It can be used for any old device. – Alex Cohn Sep 17 '12 at 04:38