Hi Josh, I've attached a sample application at http://www.naresh.se/phpBB/viewtopic.php?f=10&t=19&p=33#p33
Attached is a very basic sample application ( SimpleJNI.zip) which will guide you to use C/C++ static library ( .so ) file from android java file. Steps are also mentioned to create C/C++ static library using NDK. Note: Attached SimpleJNI.zip is a bit modified from the one which is available with android open-soruce code. Try this and feel free to ask if it doesn't work :) Cheers !! Ravi On Thu, Apr 29, 2010 at 12:21 PM, FrankG <[email protected]> wrote: > Hello Kelly, > > I would not say this can be so easy at the end. > > Josh says he want to use a static library, but with JNI > he need to use a dynamic one or at least a dynamic lib which "wraps" > the static one. And even with this wrapper he can run into linker > problems > not finding all symbols. It can be a nightmare at the end, > but it depends from the complexity of his C++ stuff. > > Good luck ! > Frank > > > > On 28 Apr., 19:41, Kelly <[email protected]> wrote: > > Download the android NDK and see how they use libraries. Just reverse > > engineer their very simple JNI projects and you can build yours no > > problem. > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

