1
我使用NotificationManager播放声音。但是当我按任意键时,我不知道如何阻止它。例如,后退按钮。非常感谢~~~ ^^Android:停止声音通知
NotificationManager manager
= (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Notification notification = new Notification();
notification.sound=Uri.parse("android.resource://"
+ getPackageName() + "/" +R.raw.fin);
manager.notify(1, notification);
恩......是的,我只是想阻止它......或者退出此通知。 无论如何,谢谢你的回复。 –