Hi,
May be a stupid question, but I try to find out a problem I have.
Can I use Process_Globals from Main within a Service that StartsAtBoot? Or will this Globals need to be moved to Service Starter?
Example:
Main:
Service:
Will this work AtBoot without the App being active before?
I know this remark: 'These global variables will be declared once when the application starts.
But this is also a remark at the service and I don't know how to interpert this.
Kind regards,
André
May be a stupid question, but I try to find out a problem I have.
Can I use Process_Globals from Main within a Service that StartsAtBoot? Or will this Globals need to be moved to Service Starter?
Example:
Main:
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim ApiUrl As String = "https://xxxxxxxxxxxxxxxxx"
Service:
B4X:
HTTPLocatie.Initialize("",Me)
HTTPLocatie.Download(Main.ApiUrl&lat="&Location1.Latitude&"&lon="&Location1.Longitude)
Wait For (HTTPLocatie) JobDone(HTTPLocatie As HttpJob)
If(HTTPLocatie.Success = True) Then
Else
End If
HTTPLocatie.Release
Will this work AtBoot without the App being active before?
I know this remark: 'These global variables will be declared once when the application starts.
But this is also a remark at the service and I don't know how to interpert this.
Kind regards,
André