On Wed, Dec 8, 2010 at 4:01 AM, Ecthelion <[email protected]> wrote: >> > 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".
No, the answer is yes. > Context.getResources().getIdentifier(...) allows any resource inside > the project to be accessed via its name. Correct. > 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. Correct. > And I can't be > sure that such text then gets processed correctly. Sure you can. It will be no different than if they accessed the string via R.string.whatever. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.1 Available! -- 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

