android ask if system is in dark mode

Solutions on MaxInterview for android ask if system is in dark mode by the best coders in the world

showing results for - "android ask if system is in dark mode"
Gracelyn
09 Jan 2018
1switch (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) {
2    case Configuration.UI_MODE_NIGHT_YES:
3       //process
4        break;
5    case Configuration.UI_MODE_NIGHT_NO:
6        // process
7        break; 
8}
9
similar questions
queries leading to this page
android ask if system is in dark mode