score:3

simply add your locale; for english locale,

return string.format(locale.english,"%s %f %f", anotherstring, doublea, doubleb);

score:11

implied default locale in case conversion

calling string#tolowercase() or #touppercase() without specifying an explicit locale is a common source of bugs. the reason for that is that those methods will use the current locale on the user's device, and even though the code appears to work correctly when you are developing the app, it will fail in some locales. for example, in the turkish locale, the uppercase replacement for i is not i.

if you want the methods to just perform ascii replacement, for example to convert an enum name, call string#touppercase(locale.us) instead. if you really want to use the current locale, call string#touppercase(locale.getdefault()) instead.

http://developer.android.com/reference/java/util/locale.html#default_locale

score:16

when i mentioned the locale with the format, the lint warning just vanished.

string.format(locale.us,"%02d", selectedint);

score:64

cleaning and rebuilding the project should work.

btw, you may want to use locale.getdefault() to "take care" of texts not written in english.


Related Query

More Query from same tag