应用程序如何检查Android Wear设备的“静音”状态?
无论如何,所有卷似乎都是0.
Log.d("VOLUME - STREAM_SYSTEM",Integer.toString(audioManager.getStreamVolume(AudioManager.STREAM_SYSTEM)));
Log.d("VOLUME - STREAM_NOTIFICATION",Integer.toString(audioManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION)));
Log.d("VOLUME - STREAM_RING",Integer.toString(audioManager.getStreamVolume(AudioManager.STREAM_RING)));
给我
D/VOLUME - STREAM_SYSTEM(32598): 0
D/VOLUME - STREAM_NOTIFICATION(32598): 0
D/VOLUME - STREAM_RING(32598): 0
最佳答案
原文链接:https://www.f2er.com/android/431103.html