I\'m trying to know whether it is possible to change the default android OS language to other. For which the language is not in the settings for instance: how to set the dev
you can change the locale to whatever you want and the system need support it.
try this:
public static void changeLocale(Locale locale) {
try {
Class> activityManagerNative = Class.forName("android.app.ActivityManagerNative");
Object am = activityManagerNative.getMethod("getDefault").invoke(activityManagerNative);
Object config = am.getClass().getMethod("getConfiguration").invoke(am);
config.getClass().getDeclaredField("locale").set(config, locale);
config.getClass().getDeclaredField("userSetLocale").setBoolean(config, true);
am.getClass().getMethod("updateConfiguration", android.content.res.Configuration.class).invoke(am, config);
Log.i(LOG_TAG, "send change locale request");
} catch (Exception e) {
Log.e(LOG_TAG, "change locale error:", e);
}
}