On 7 Dez., 16:39, Mark Murphy <[email protected]> wrote:
> On Tue, Dec 7, 2010 at 10:35 AM, Ecthelion <[email protected]> wrote:
> > Yes, if the library project includes all the sources. But in this case
> > part of the foreign code is inside a jar file.
>
> Resources cannot be in a JAR file.

Yes, but I never said so. I said foreign "code" is inside the jar
file.

>
> > And can I really be
> > sure that the string is not used somewhere inside this library (e.g.
> > via getResources().getIdentifier(...)) in a way that breaks once I
> > modify the resource?
>
> Yes.

Sorry, but the answer is "no".
Context.getResources().getIdentifier(...) allows any resource inside
the project to be accessed via its name. So there could be code inside
the library jar that accesses the string properties that I am to
modify because they contain "%s %s" or similar text. And I can't be
sure that such text then gets processed correctly.

-- 
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

Reply via email to