Lets say i have GPS app that is tracking stuff. Now when user in settings does not want to track anymore, when the device restarts and startboot is true. How do i eliminate the Codes below. I just want the service to start and not do anything and not to display notification and not to startforeground?
Sub Service_Create Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER 'we are handling it ourselves GPS.Initialize("gps") lock.PartialLock End Sub
Sub Service_Start (StartingIntent As Intent) Service.StartForeground(nid, CreateNotification("...")) StartServiceAt(Me, DateTime.Now + 30 * DateTime.TicksPerMinute, True) Track End Sub