OK, having actually converted a project with a significant number of format strings: this thing is MUCH more serious than I thought.
This isn't just a matter of an over-the-top error message. That's bad enough, of course. But combine that with a BROKEN DETECTOR? Consider this format string: "foo%nbar%nbaz" The resource compiler wants me to write this as "foo%1$nbar$1nbaz" or similar garbage. Meanwhile, String.format wants me to NOT write such garbage. It does look like the detector special-cases '%%'. And while we're on the topic of strange processing of strings.xml -- can you explain just WHY it has this weird behavior with quotation marks and backslashes? As near as I can tell, it adds zero value but contributes headaches. While does mean I can use "\n" as a (non-portable) workaround for the above problem -- I could have included a newline at least two different ways without it. -- 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

