Hi.
I have an app with a service running.
Now I have made a Stop service button that runs a
This looks to work fine because I got :
the message "Close service" and the apps exits.
But When I turn on my bluetooth device again the service pops up again?
I have the service running in foreground. Do I need to stop this or will it stops aut. when the service closes?
Or do I need to run this
Mogens
I have an app with a service running.
Now I have made a Stop service button that runs a
B4X:
Stopservice(bluetoothservice)
This looks to work fine because I got :
B4X:
Sub Service_Destroy
ToastMessageShow("Close Service", False)
ExitApplication
End Sub
the message "Close service" and the apps exits.
But When I turn on my bluetooth device again the service pops up again?
I have the service running in foreground. Do I need to stop this or will it stops aut. when the service closes?
B4X:
Service.StartForeground(1, Notification1)
Or do I need to run this
B4X:
Service.StopForeground("")
Mogens