simply add your locale; for english locale,

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


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( instead. if you really want to use the current locale, call string#touppercase(locale.getdefault()) instead.


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

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


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