It is quite a bummer that Android resources cannot be distributed in a
jar. One possible work-around that comes to mind is writing up a
simple tool to convert resources to java literals and compiling these
into your project. For example:
public static final byte myresource[] = {0x45,0x23,0x8F};
Obviously, real resources would be much larger.
As long as you never need to call an API that expects a Android
resource ID, this should be a poor mans replacement for Android
resources. I am going to try this approach with a reusable library
that I am working on.
--
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