hi how to build ndk application...now i am using linux os and i am new for android application please tell me simply....
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This should hopefully help you out:
http://www.jondev.net/articles/Using_NDK_r4_with_the_Android_SDK_in_Netbeans
Shows you how to build a simple 'Hello World' app using the NDK.
回答2:
Be aware that the NDK will not let you build applications. It will only let you build a shared library object (.so
) that your SDK application will open at runtime in order to execute native code.
Instead of the standard way to build and install applications:
ant compile # (or ant debug) ant install
You will have an extra step:
ndk-build # builds the .so files ant compile # builds the Java app and embeds the .so within the final .apk ant install