Application Dark Mode Android Studio

YOUR ACTIVITY SHOULD extend AppCompatActivity

AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); //night
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);  //day
PizzaSolver