Now its possible to change the application specific language programatically It is working by setting locale. But you have to set it in all activities. Here is a code you can try these code.
you can get the local language using locale and can then set the new configuration on locale setting like this :
Resources resource = context.getResources();
// Change locale settings in the app.
DisplayMetrics dm = resource.getDisplayMetrics();
android.content.res.Configuration conf = resource.getConfiguration();
conf.locale = new Locale(language_code.toLowerCase());
resource.updateConfiguration(conf, dm);
0 Comment(s)