I have an app and would like the user to change it if he / she wants to
Following this link worked fine, however if I clean the cache of the phone (I think that's it) or clean all the screens open and try to open again, it does not stay with the language chosen.
How would you do that when he returned to the app recognize the changed language. I thought about saving the language in the database and retrieving it, however after I clear the cache it gives the message waiting for the debugger
After I entered this 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){
}