Thanks, for the replay's, Chris, i was searching to include executable's in apk, so my api will run these binaries, using jni or java code. I have seen that hellojni api in ndk samples will automatically include gdbserver binary in apk, Let me know if you have any examples/links to do this,
As of know i converted my native code from executable's to shared library using pthreads, built this shared library using android stack, source code, not by ndk. and by linking other shared libraries like asound, alsa... My question is, can i use this shared library (using PREBUILT_SHARED_LIBRARY option) along with my jni code to build target shared library by using NDK ?? Thanks again On 20 August 2011 01:48, Chris Stratton <[email protected]> wrote: > On Wednesday, August 17, 2011 11:16:36 PM UTC-4, arif wrote: >> >> I am porting one application to android, there are few depending >> binaries and config files, is it possible to include/build binaries in >> apk ( using NDK or by other method ). > > > If you just mean data, sure - see the writeup on assets in the developer > docs. > > If you mean binary native code for the appropriate process, it is possible, > but you are encouraged to use dynamic libraries called via jni rather than > independent executables launched in a separate process. For jni libraries, > see the NDK docs and samples. For separate executables, you would have to > have your application copy the executable that will be launched out of the > assets folder and into the app's private storage. > > FYI the android-porting group is about porting the android system to > devices, not porting software projects to run on top of android > installations. > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
