I want to create an android library (jar file). Jar files must be localized. How do I have a class:
class MyMessageService {
I tried to pack res/values/string.xml and R.class in a jar.
But in my main application that references the jar, I call
String s = this.getResources().getString(mylibrary.localize.R.string.hello);
I got "s", which is from my main project (resource identifier collides).
Is there a way to create an android library that supports localization? I can not allow the main application to import my library resource, because my library must be sent alone.
source share