【发布时间】:2012-06-08 15:29:59
【问题描述】:
我使用 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);
【问题讨论】:
标签: android android-notifications notificationmanager