Im using android 4.2 SDK, I have been getting a warning on this line of code:
String text0 = tagalogText.getText().toString();
String textA = text0.substring(0, 1).toUpperCase() + text0.substring(1).toLowerCase();
When I hover over it, it says:
Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead.
and
Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead.
I copy the code from Java, not in Java for android. Does anyone know how to remove this error? And why is it now a preferred way to use this method?