I want to detect is Driving Mode enabled/disabled state on my Samsung Galaxy S2, S3 or S4 devices programmaticaly, but I have no idea how I can do it.
P.S.: I mean: Settings > Language and input > Text-to-speech output > Driving Mode.
Please help.
I want to detect is Driving Mode enabled/disabled state on my Samsung Galaxy S2, S3 or S4 devices programmaticaly, but I have no idea how I can do it.
P.S.: I mean: Settings > Language and input > Text-to-speech output > Driving Mode.
Please help.
boolean isEnabled = Settings.System.getInt(getContentResolver(),
"driving_mode_on", 0) == 1;
isEnabled will be true if Driving Mode enabled