It happens that my app sometimes changes language in runtime by itself. Did anyone encounter this problem? This is the function which I use to set language manually (when user selects it in my app):
public static void setSystemLanguage(Context context, Configuration configuration, String language) {
configuration.locale = new Locale(language);
context.getResources().updateConfiguration(configuration, context.getResources().getDisplayMetrics());
}
I really don't have more information, I'm unable to reproduce it. This doesn't happen very often, but few users complained about it. The only thing I know is that suddenly when user opens new activity, it is opened with different language. And this doesn't happen on some specific activity, every time user post problem, it was different activity.
I allow users to choose language when they install the app. Users can set language which is different than the one which is on their devices. I believe that app changes the language by itself to the system language (not the random one).