I send a notification with a long melody, make notificationBuilder.setSound() , the melody plays and pauses when the curtain opens, everything is OK, but now you need to stop the melody programmatically, leaving a notification. How to do it? I tried in parallel with the notification to start the melody using the MediaPlayer and stop, but now it does not shut up when the curtain opens. You need to either turn off the melody from the notification, or subscribe to the event of opening the curtain. Any ideas?
- Have you looked here? stackoverflow.com/a/9622040/3212712 - YuriSPb ♦
- @ YuriSPb, yes, does not stop after opening the curtain. - katso
|