> Looking at the Android source code, I noticed that android.jar > contains its own ressources so I assume this is possible.
Yeah, but that's special. There is no way for JARs written to support SDK-level applications to embed resources that I have found. Instead, you need to package your resources separately (e.g., a ZIP file) and distribute them for reusers of your JAR to unpack in their APK project's res/ tree (or to replace with their own editions of the resources, as they see fit). Then, adjust your API to accept resource IDs as parameters (like you see for many of the APIs), so your code no longer has R.id or R.drawable references itself -- those refererences would be in the calling application, who has the resources and the corresponding R.java file. If there's another way around this, I'm certainly interested to hear about it... -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---