I created an application in two languages. The second (English) is used when the default user system language is English. If it is not, then the first is used.
I want to set the second language (English) as the DEFAULT language, this means that when the user opens my application and his system language is not the first, neither English, English will be displayed as standard.
I tried:
Locale locale = new Locale("en_US"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; context.getApplicationContext.getResources().updateConfiguration(config, null);
But the error "context cannot be resolved" every time. Is this piece of code correct or ...?
source share