ASFAIK Android manifest <uses-library> and java.lang.System.loadLibrary () are not related. Manifest <uses-library> references a pre- installed Java jar (hence that Java package name) that the application uses. System.loadLibrary loads a native (usally written in C) shared library (e.g., a dll on Windoze or a .so on linux). The native library is accessed from Java with JNI.
On Jan 25, 8:20 am, DulcetTone <[email protected]> wrote: > I have an app that includes this code blurb: > > System.loadLibrary("foo_jni"); > > Where the functionality in foo_jni is in the OSP under external/foo > > However, there is no uses-library tag in my app's AndroidManifest.xml > > I suspect that some crashes reported from the field is from phones > that lack this android system library. My aspiration here is that I > add a uses-library tag to my file and that this might keep people who > flat-out lack this library from downloading or at least installing my > app, which has zero chances of working on their phone, > > However... > > The (extremely limited) documentation for uses-library implies the > libraries have package-y names such as com.foo.mylib ... which seems > to disagree with the name used in the Java code I am looking at. > > How do I guess at the string to use here, or is my effort to worry > about this not going to help me? -- 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

