Which method is best for C program runs in Android
As per my knowledge, there are 3 methods to compile and use C code into android. 

`1. NDK : by using JNI :` [example][1]
<br>`2. -static : without using libc library` : [example][2]
<br>`3. dynamic : with using libc library` : [example][3]


  [1]: http://marakana.com/forums/android/examples/49.html
  [2]: http://android-tricks.blogspot.in/2009/02/hello-world-in-c-on-android.html
  [3]: http://android-dls.com/wiki/index.php?title=Compiling_for_Android

I need to find out best method. Also i need to consider reliable method and require good performance.

Thanks
Which method is best for C program runs in Android
===

As per my knowledge, there are 3 methods to compile and use C code into android. 

`1. NDK : by using JNI :` [example][1]
<br>`2. -static : without using libc library` : [example][2]
<br>`3. dynamic : with using libc library` : [example][3]


  [1]: http://marakana.com/forums/android/examples/49.html
  [2]: http://android-tricks.blogspot.in/2009/02/hello-world-in-c-on-android.html
  [3]: http://android-dls.com/wiki/index.php?title=Compiling_for_Android

I need to find out best method. Also i need to consider reliable method and require good performance.

Thanks