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

Excuse me ,
Yes, that's a different question.
Do I need to create a new topic?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…