I wants to create a background service to connect my MSSQL Database. Presently i connect it with below given codes in main activity:
B4X:
Sub Process_Globals
Dim a As MSSQL
End Sub
Sub Activity_Create(FirstTime As Boolean)
a.setDatabase("xxx.xx.xxx.xxx","xxxxxxxx","xxxxx","LddIn#cdcdc")
End Sub
Is it possible to get the current location of app or device when the app is not in a running position. Actually right now when the app is stopped by user i can't get the location but when it starts i gets the location.
That's why i decide to run an extra background service through which i can send location even if the app is stopped by user..