How to change your phone language in Android with Java code?

I need help to change my phone language to English United States, using only code in an application.

Answers


    String languageToLoad = "de"; // your language
    Locale locale = new Locale(languageToLoad);
    Locale.setDefault(locale);
    Configuration config = new Configuration();
    config.locale = locale;
    getBaseContext().getResources().updateConfiguration(config,
            getBaseContext().getResources().getDisplayMetrics());

Need Your Help

Post data using Spring RestTemplate

spring servlets resttemplate postdata

I am trying to post data using Spring RestTemplate as below:

Using Mono to complete Universal Windows Platform (.net core)

mono itextsharp win-universal-app .net-core

We are using some old open-source .Net Framework libraries that depend on things that are not in .Net Core. Can Mono be used to fill in the rest of .Net Framework?