I want to programmatically disable all hours. So I wanted to do the following: 1. Turn off the sound, so go into vibration-free mode. Will manufacturers be able to add sound features to the watch? Otherwise, I would also have to add a sound sound ... 2. The screen is always on, off. This is a system setting. Can I change it programmatically?
I already tried using MediaManager for the first point:
AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
audioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
I tried all other call modes to be sure, and nothing works and does not change anything in the emulator and on my real watch, but does nothing ...
The stone watch has support at night or in quiet mode ... Therefore, I will not be so hard to do it on the toe that I was thinking about .. Any ideas on this?
source
share