views:

199

answers:

1

I have a project that I would like to add external libraries to (and have them packaged with the application) but I am not sure it is happening. I read on this link:

http://developer.android.com/intl/fr/guide/appendix/faq/commontasks.html

how to, but they do not show up in any of the /data/data/project directories. Does anyone know how I can confirm that the libraries were in fact added to the project for use at runtime? Thanks.

+2  A: 

If you include jars as External Jars under your project's Java Build Path, then the classes will be converted to Dalvik format and be made available in your project's classes.dex file, packaged into the .apk.

To confirm they are available, attempt to use something from the jar (Eclipse should suggest the relevant import when you first supply a class name) build and run the app and see if it works? If it works in development (e.g. from 'run' in Eclipse) then it will also work when the app is built in release and distributed as an APK.

Jim Blackler