Android Question Notify Icon always present

dibesw

Active Member
Licensed User
Longtime User
How can I keep a notification always present at the top left without the possibility of deleting it (e.g. as B4A-Bridge)?
 

barx

Well-Known Member
Licensed User
Longtime User
Depending on the functionality of your app, I would say you need to look at setting the notification as 'OnGoing'. Or using a foreground service.
 
Upvote 0

dibesw

Active Member
Licensed User
Longtime User
Simple use notify when my app start (I use NB6)
B4X:
Sub notifica
    Dim n As NB6
    n.Initialize("default", Application.LabelName, "DEFAULT").AutoCancel(False).SmallIcon(smiley)
    n.Build("POS SumUp", "CONNESSO", "tag1", Me).Notify(4) 'It will be Main (or any other activity) instead of Me if called from a service.
End Sub
but I don't want the notification cleared by the user.

I do not know OnGoing.
I could use a service?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
 
Upvote 0
Top