How to create / compile an ndk application?

hi now i am download ndk, but I don’t know how to create and compile, in fact, I am new to Android application .... now I use linux ... and I'm not very good at the command line ....

embdes@embdes-laptop :~$ cd /home/embdes/projects/android/android-sdk-linux_86 /platform-tools/ embdes@embdes-laptop :~/projects/android/android-sdk-linux_86/platform-tools$ ./adb shell # ls config cache sdcard acct mnt d etc system sys sbin proc init.rc init.goldfish.rc init default.prop data root dev # cd /sdcard # ls LOST.DIR unnai.mp3 car.3gp DCIM cheetah-.3gp funny.3gp tshirt.3gp Girl.3gp dancing.3gp b7.jpeg girl1.3gp tv.3gp sports.3gp sports1.3gp sports3.3gp sport2.3gp tv.jpeg tv1.jpeg global.jpeg orange.jpeg images.jpeg ddddd.jpeg balloons-lift-car.3gp 3d-little-monster.3gp smoking.3gp the.3gp NO$GBA.2.6a.zip worldreborn.bin # 
+7
source share
2 answers

Read how to get started here: http://developer.android.com/sdk/ndk/index.html

also see the samples they explained here: http://developer.android.com/sdk/ndk/overview.html#samples

Here: android / ndk-tutorial / you will find a tutorial on working with NDK in android.

To use NDK with eclipse, see here: eclipse-and-android-ndk

Hope this helps.

+9
source

2 after downloading you need to install it

change permissions

 chmod a+x android-ndk-r10e-linux-x86_64.bin 

execute

 ./android-ndk-r10e-linux-x86_64.bin 

3 add it to linux path

 export PATH=$PATH:/home/android-ndk-r10e 
  1. To run the sample application, use hello-jni under the samples. enter image description here

5.create project location from terminal and ndk-build

 ndk-build 

enter image description here

  1. Run the application in the emulator to see the results enter image description here
+2
source

All Articles