On Mon, Mar 26, 2012 at 1:18 PM, A B <saurbh...@gmail.com> wrote: > I have Device on which i installed Android Gingerbread 2.3.4 Here i want to > run C executable file on android device > > I am able to run android NDK application on Device and its run perfect But i > want to run only onehello.c executable file on Device. > > /* #includes #defines ... */ > > > > int main(){ > > > // Do something when this is executed > > > return 0; > > > } > > > Is there any way to compile this file with Android NDK tool chain and we can > run this file's executable
No. The NDK is to create libraries that you link into an Android application via JNI, not to create executables. You are welcome to use a cross-compiler to try to get a C executable to run on Android. However, that, and the NDK, are not the subject matter of this Google Group. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en