test android NDK sample
http://developer.android.com/sdk/ndk/1.6_r1/index.html
setup the environment
$ cd ndk_directory
$ ./build/host-setup.sh
compile sample share library
$ cd ndk_directory
$ make APP=hello-jni
open android project by eclipse
重新compile .so之後必須對著project點refresh
modify android platform compatibility
不同的API Level改變不同minSdkVersion的值
ex: android 1.5 = 3
ex: android 1.6 = 4
留言
張貼留言