You can put this, at the first line in the onCreate
method of your launcher activity.
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
More Related Contents:
- Save data in a SQLite database with the original format and view those data again with that form format
- How to make an Android Spinner with initial text “Select One”?
- How to send emails from my Android application?
- How to add dividers and spaces between items in RecyclerView
- How can you tell when a layout has been drawn?
- Eclipse giving error, missing R.java file after recent update
- Don’t reload application when orientation changes
- getExternalStoragePublicDirectory deprecated in Android Q
- Is there a way to hide the system bar in Android 3.0? It’s an internal device and I’m managing navigation
- SecurityException: caller uid XXXX is different than the authenticator’s uid
- Android Studio : How to uninstall APK (or execute adb command) automatically before Run or Debug?
- how can I detect whether the android phone in Silent mode programmatically
- How to do circular scrolling on ViewPager?
- Open Android app from URL using intent-filter not working
- How to iterate through all keys of shared preferences?
- Android- how can I convert android.net.Uri object to java.net.URI object?
- Recycle-view inflating different row :- Getting exception while binding the data
- Best practices: Layouts on Android (Programmatic vs XML)
- Eclipse JUNO doesn’t start
- Difference between OnTouch and OnClick Android
- Travis CI failed because cannot accept license Constrain Layout
- How To give notifications on android on specific time?
- Gradle: How to Build different flavours of different built types?
- How can I pin a certificate with Square OKHTTP?
- AJAX Request from Phonegap Android fails
- Android AsyncTask won’t stop when cancelled, why?
- Edit Text shows exception Invalid Int “”
- Google Play security alert for insecure TrustManager
- How to get SD_Card path in android6.0 programmatically
- Failed to execute tools\android.bat: solution