format flags conversion mismatch exception

SOLUTION:

In my preferences.xml I had referenced a string. That string contained a % symbol which was responsible for the force close. Removing the % symbol fixed the issue.


you need to add formatted="false" attribute in your string

See Android XML Percent Symbol


i was getting that because i was using a tool to do automatic translations. it was putting in % s instead of %s.


Appears to be a change in Android 4. Doubling the % symbol in your string appears to work - % now appears to be an escape character so self-escaping with %% did it for me.

Tags:

Java

Android