I have this service currently, which works perfectly with the new version of B4A and to work with android 8 just enough to add this line
Or I have to do something else to keep it running in the background and starting at the beginning of the phone.
Thanks, dear.
B4X:
Service.StopAutomaticForeground
Or I have to do something else to keep it running in the background and starting at the beginning of the phone.
B4X:
#Region Service Attributes
#StartAtBoot: True
#End Region
Sub Process_Globals
End Sub
Sub Service_Create
End Sub
Sub Service_Start (StartingIntent As Intent)
StartServiceAt("", DateTime.Now + 30 * DateTime.TicksPerMinute, True)
If ModConn.s.IsInitialized Then
Log("La BD Sqlite ya esta inicializada.")
Else
ModConn.ConexionSQLite
End If
If ModConn.isConnected Then 'Comprueba si tiene conexión a internet
CompruebaConexion
End If
End Sub
Sub Service_Destroy
End Sub
Thanks, dear.