Dim n As NB6
....
'also at..
Sub Service_Create
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER
lock.PartialLock
If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION) = False Then
Log("No permission")
Return
End If
....
'hmmm and here...
Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(1, CreateNotification("...")) 'Hey this gonna keep your app in LIFE... do not forget!!!!! - ofcourse need some manifest too.. :-) check there...
n.Initialize("default", Application.LabelName, "LOW").AutoCancel(False).SmallIcon(LoadBitmap(File.DirAssets,"icon.png"))
n.Build("ShareYourSpot", "This is an application, that shares your current location with other users!", "tag1", Main).Notify(1)
...