Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Change application language programatically

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 75
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: