Thanks David. I have this done by add my static library files to the the android's library path.Thanks for help. BTW. I have no NDK to use,and the static library is from other company.
2009/7/31 David Turner <[email protected]> > You need to generate a shared library, not a static one, to be able to use > native code with JNI. > > May I recommend you to download and use the Android NDK to do that? > > > On Fri, Jul 31, 2009 at 10:00 AM, frog <[email protected]> wrote: > >> HI,all >> I am recently developing a application use android jni.but,it cannot >> works.The application is base on a static library, >> and ofcourse with some *.h files.I have include the .h files in my .cpp >> file,but it seems , >> the comile cann't find the vars definded in them. >> my Android.mk is like this: >> ........................ >> ............. >> LOCAL_STATIC_LIBRARIES += \ >> libfoo >> LOCAL_C_INCLUDE += \ >> $(JNI_H_INCLUDES) >> ./ >> ........ >> ............. >> I build the application by the mmm foo at ${android_source}. >> Anyone have done this before?Please help.thanks in advance. >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

