In my android app, I set the theme like this:
@Override
public void onCreate(Bundle savedInstanceState){
ThemeSetterActivity.setStyle(Main_MenuActivity.this); // this just calls context.setTheme();
super.onCreate(savedInstanceState);
setContentView(R.layout.main_menu);
}
But how do I change the theme using
ThemeSetterActivity.setStyle(Main_MenuActivity.this);
when it's in the onresume event. When I try it, it does call the function but the theme doesn't change. Does it have something to do with not calling:
super.onCreate(savedInstanceState);
setContentView(R.layout.main_menu);