I am still writing for Android 2.2.
I set a notification
If the user selects the notification my code runs. That part is fine.
The problem is if the user hits Clear the notification is removed but my code doesn't run.
My question is this: is there a way for me to determine if my notification has been cleared?
I am running code periodically in the background which I would like to stop if the user has cleared my notification.
Thanks for your help.
I set a notification
B4X:
NTF.Initialize
NTF.Cancel(1)
NTF.AutoCancel=True
NTF.Icon="nag36x36"
NTF.Vibrate= False
NMsg = "Stop Nagging!"
End If
NTF.SetInfo2("Nag-Trial", NMsg, "", StopNagging2)
NTF.Sound = False
'NTF.Light=True
'Log("Set Notification")
NTF.Notify(1)
If the user selects the notification my code runs. That part is fine.
The problem is if the user hits Clear the notification is removed but my code doesn't run.
My question is this: is there a way for me to determine if my notification has been cleared?
I am running code periodically in the background which I would like to stop if the user has cleared my notification.
Thanks for your help.