0
I have an app and I would like the user himself to change if you want
Following this link even worked, but if I clear the cache of the mobile phone (I think that’s it) or clean all open screens and try to open again, it does not remain with the chosen language.
How would you make it so that when he returned to the app he recognized the changed language. I thought to save the language in the database and recover, but after I clear the cache gives the message of waiting for the Debugger
After I entered that code:
try {
database = new Database(this);
conn = database.getWritableDatabase();
repositorioLocale = new RepositoriosLocales(conn);
int lingua = repositorioLocale.getIntLocale();
if(lingua > 0){
idioma = repositorioLocale.getRecLocale();
setLocale(idioma);
}else{
repositorioLocale.inserirLocale(getResources());
}
}catch (SQLException ex){
}
on hold, for you this is easy
– adventistaam