I want to format all numbers in my app to arabic numbers (١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩) so I thought about setting the locale to a combination of arabic and region : Egypt instead of only arabic but unfortunately for a reason or another, the locale is not set.
I set my locale like so:
Locale myLocale = new Locale("ar_EG");
Locale.setDefault(myLocale);
Configuration config = new Configuration();
config.locale = myLocale;
getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());
And my strings.xml is put in a folder named "values-ar-rEG".
What am I getting wrong?
Thank you very much in advance.