Using the Java reflection mechanism
Iactivitymanager and Activitymanagernative are non-public classes that use Java reflection to invoke methods in them.
The first step is to use the Android open API to change the configuration while saving the language type
Second step, destroy the current page, redraw to change language type
If your page is not the homepage, your call to the above code will only update the current page, and the activity on the stack will not update the interface. such as setting language success, will automatically jump to the homepage, of course, the content of the homepage is also updated, and its implementation is very simple, and we write the same. Is the listening settings successfully, destroy all existing pages, and then jump to the home page. Your app will be able to meet the above requirements, but don't worry about the third step.
The third step, as long as your app is not completely removed from Dalvik or art, is no problem. However, if you reboot, or force the app to kill, it starts again and reverts to the previous language type.
This will let us use the type of language saved in the first step, in the base class baseactivity of all pages, each time the method of the language setting is invoked, so that the page is forced to set the language type of the business requirement. OK, this problem is solved satisfactorily, to add this function for your app, the code changes are very small.
Android in-app language switch implementation (GO)