NDK on Ubuntu
1. Glibc
ldd --version
2. Make build tool for native code
sudo apt-get install build-essential
3. Make version
make --version
sudo apt-get install ia32-libs, pour 64-bit linux
4. install jdk 6
5. download androidsdk
6. download androidndk
7. export env variables
export ANDROID_SDK=”<path to your Android SDK directory>”
export ANDROID_NDK=”<path to your Android NDK directory>”
export PATH=”$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platformtools:$ANDROID_NDK”
8. update android sdk tools
NDK: c++ <==> java
<returnType> Java_<com_mypackage>_<class>_<methodName> (JNIEnv* pEnv,<parameters>...)