python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How do I check whether night mode was turned on or off
I don't want to know what is the current going on mode (dark or light) in my android device. I want to know if the mode was switched at the time my android activity was running. How do I put a check f...
Utkarsh Sahu
Votes: 0
Answers: 0
How do I keep my android activity keep on going even if somebody switches from dark mode to day mode or vice versa (using Java)
The problem is that when I switch from dark mode to light mode (android dark mode and android light mode), the activity which was going on that works fine but a duplicate activity starts all over agai...
Utkarsh Sahu
Votes: 0
Answers: 1
Force light mode on single View
I have an Android app which supports night mode by inheriting the theme from Theme.MaterialComponents.DayNight.NoActionBar. This works perfectly fine.
However, for a specific View, I want to force lig...
ubuntudroid
Votes: 0
Answers: 0
Turn off dark mode on device programatically. (or other solution) Android studio Kotlin
So I need a little help here.
My problem is, that when I have a function in my app for changing to dark mode, then when I change it when the device is in light mode, it changes just fine, but when I c...
Guard_SK
Votes: 0
Answers: 1