谢谢.
AudioManager mgr = (AudioManager)getSystemService(Context.AUdio_SERVICE); mgr.setStreamMute(AudioManager.STREAM_SYSTEM,true);
这是在收到第一条消息之后:
AudioManager mgr = (AudioManager)getSystemService(Context.AUdio_SERVICE); mgr.setStreamMute(AudioManager.STREAM_SYSTEM,false);