at... main at top... i have:
#additionaljar: com.android.support:support-v4
into service i have:
Sub CreateNotification (Body As String) As Notification
Dim notification As Notification
notification.Initialize2(notification.IMPORTANCE_LOW)
notification.Icon = "icon2"
notification.Sound=False
notification.Vibrate=False
notification.SetInfo("some info...", Body, Main)
Return notification
End Sub
i am calling that from:
Sub Service_Start (StartingIntent As Intent)
If Main.manager.GetBoolean("check1")=True Then
Service.StartForeground(1, CreateNotification("..."))
End If
....