RBJ
RBJ

Reputation: 971

how to build ndk application?

hi how to build ndk application...now i am using linux os and i am new for android application please tell me simply....

Upvotes: 1

Views: 5127

Answers (2)

sam hocevar
sam hocevar

Reputation: 12129

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

Upvotes: 1

xil3
xil3

Reputation: 16439

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.

Upvotes: 2

Related Questions