how to support localization in android library
<p>I want to build an android library (jar file). The jar files needs to be localized. Like I have a class:</p>

<pre><code>class MyMessageService
{
    //Needs to return different languages message according to locale
    String getMessage1(); 
}
</code></pre>

<p>I tried to package <code>res/values/string.xml</code> and <code>R.class</code> in the jar.</p>

<p>But in my main application which reference the jar, I call</p>

<pre><code> String s = this.getResources().getString(mylibrary.localize.R.string.hello); 
</code></pre>

<p>I got "s" which is from my main project (resource id collides).</p>

<p>Is there any way to create an android library that support localization? I cannot let main application import my library's resource as my library is supposed to shipped alone.</p>
