Android Question Starting a service with an NB6 Notification object

GuyBooth

Active Member
Licensed User
Longtime User
With the "old" notifications, I would use these statements when starting a service:
B4X: Copy
Dim nNotify as Notification
.. code to construct nNotify
Private NID as Int = 1

Sub Service_Start (StartingIntent as Intent)
  Service.StartForeground(NID, nNotify)
...
End sub

How do I use the NB6 notification object instead of the old Notification object?
If I construct an NB6 notification object I get a "Types do not match" message ...
I can't find a reference in the notes on using the NB6 library.
 

Similar Threads

  • Question Question
Android Question NB6 + Target SDK 33
Replies
6
Views
6K
Replies
1
Views
4K
Replies
11
Views
16K
  • Question Question
Android Question NB6 example-problem
Replies
1
Views
4K
Back
Top