How to change the language of runtime permissions in android?
When I'm trying to change the language using
Configuration config = getBaseContext().getResources().getConfiguration();
locale = new Locale(lang);
Locale.setDefault(locale);
Configuration conf = new Configuration(config);
conf.locale = locale;
getBaseContext().getResources().updateConfiguration(conf, getBaseContext().getResources().getDisplayMetrics());
It changes the application language but the permissions for camera such dialogs showing in english only.
Is there any way to change the permission dialog language?
On Android, there is no official support, documentation or API to change an entire app's language at runtime. When a user opens an app, the resource framework automatically selects the resources that best match the device language settings.
Runtime permissions prevent apps from gaining access to private data without a user's consent, and provide them with additional context and visibility into the types of permissions that applications are either seeking, or have been granted.
Is there any way to change the permission dialog language?
Have the user change their device language.
At most, your approach will change the language used by your app's process (though that may change on Android N). Any system-supplied UI, such as the permission dialog, will use the language chosen by the user for their device.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With