Question

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.

Was it helpful?

Solution

boolean isEnabled = Settings.System.getInt(getContentResolver(), 
            "driving_mode_on", 0) == 1;

isEnabled will be true if Driving Mode enabled

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top