我使用 NotificationManager 播放声音。但是当我按任意键时,我不知道如何停止它。例如,后退按钮。太感谢了~~~^^
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);