but all these commands can run at any android version ? for ex. at android 4.1, 4.2 ?
B4X:
Sub Service_Create
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER 'we are handling it ourselves - THAT Will work at android v4 ?
lock.PartialLock '- THAT Will work at android v4 ?
End Sub
Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(nid, CreateNotification("..."))
StartServiceAt(Me, DateTime.Now + 30 * DateTime.TicksPerMinute, True)
End Sub