The answers above work, but only for the language, if you want to use, for example:
NumberFormat numberFormat = NumberFormat.getCurrencyInstance(Locale.getDefault());
changes the previously installed locale, does not work anymore, as in previous versions of Android.
Changed the way the language standard is initialized (I don’t know why, I looked in the API and said nothing).
So, change the way you initialize your locale:
Locale locale = Locale("en_US")
:
Locale locale = new Locale("en", "US");
and it works like a charm :)
Hope this helps someone in the future.
Greetings
Marco HC
source share