当应用设置为设备所有者时,ToneGenerator不会产生声音

时间:2019-12-03 22:56:27

标签: android device android-audiomanager owner

我有以下运行良好的代码:


ToneGenerator toneGenerator = new ToneGenerator(AudioManager.STREAM_ALARM, ToneGenerator.MAX_VOLUME);
toneGenerator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200);

但是,一旦我将我的应用设置为设备所有者,ToneGenerator就不再发出声音了。 希望有人能帮助我。

0 个答案:

没有答案