(1) install and configure sunjdkapt-getinstallsun-java6-jdkupdate-alternatives -- configjava (2) install eclipse download a latest forjava version from the eclipse website (3) install ADT to set environment variables: exportGDK_NATIVE_WINDOWS = true and then install ADT (4) based on the Android description to install Android
(1) install and configure sun jdk
Apt-get install sun-java6-jdk
Update-alternatives -- config java
(2) install eclipse
Download the latest for java version from the eclipse website
(3) install ADT
Set the environment variable: export GDK_NATIVE_WINDOWS = true
Then install ADT according to the Android description
(4) install the Android SDK
Download the Android SDK and set the correct path in eclipse preperence.
(5) install Android NDK
Extract to a path, modify the build/host-setup.sh file, change $ result = Pass to $ result = Pass, and then execute the build/host-setup.sh file.
(6) test
Execute make APP = hello-jni in the ndk directory and a so file is generated.
Create an NDK program in eclipse and compile and run it.