Hallo,
I want to ask what is the proper way to stop the service when the User deletes the Notification. The actual implementation sends Stop command to the service without stop it. Is there a way to stop the service when the User deletes the notification? Former I used to use the PlayerNotificationManager which has Listener to catch event when user delete notification, then I have the chance to execute where ever the code what I want. NOW I want to use the MediaNotification.Provider and here I have only chance to send Intent.
Hallo, I want to ask what is the proper way to stop the service when the User deletes the Notification. The actual implementation sends Stop command to the service without stop it. Is there a way to stop the service when the User deletes the notification? Former I used to use the PlayerNotificationManager which has Listener to catch event when user delete notification, then I have the chance to execute where ever the code what I want. NOW I want to use the MediaNotification.Provider and here I have only chance to send Intent.
Thanks in advance and thanks for support