Android Question Cancel notification

Mrphone

Member
Hi guys :)

I made a simple notification
Code:
dim notif as Notification
notif.Initialize
notif.Icon = "icon"
notif.AutoCancel = True
notif.SetInfo("Title", "This is body.", Me)
notif.notify(1)

I want to do something whenever the notification is canceled
is it possible?
 

Mrphone

Member
Excuse me, but what should I do if we want to cancel the announcement?
What commands should be used?
This class does not have a cancellation order:
NB6.Cancel(1)

---------------------------------

The AutoCancel(True) or AutoCancel(False) command does not work at all

Code:
n.Initialize("default", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(LoadBitmap(File.DirAssets,"noti_play.png")) _
     .LargeIcon(LoadBitmap(File.DirAssets,"logo.png")).Color(Colors.RGB(187,127,42))
n.Build("title", "content", "tag1", Me).Notify(1)
 
Last edited:
Upvote 0

Mrphone

Member
You asked: "I want to do something whenever the notification is canceled "

The answer is that you should set the DeleteAction and then intercept the intent based event when the notification is canceled.

If you want to cancel the notification yourself then it is a completely different question.

Excuse me ,
Yes, that's a different question.
Do I need to create a new topic?
 
Upvote 0
Top