Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to use set ForceDarkAllowed(false); in android studio

public class MyApplication extends Application {
    
    public void onCreate() {
        super.onCreate();
        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #android #studio
ADD COMMENT
Topic
Name
9+9 =