We have not needed to work with this project for a while. Last time we did we were using B4A V9.8. Today trying to bring this up to date. We are advancing target SDK from 28 to 31. We have B4A 11.8 installed. But we are getting an error we don't understand, nor how to fix..
Note: We see GPS 1.20 listed in libraries.
Main - 196: Sub 'StartGPS' not found. (warning #25):
Sub Activity_Resume
Log("******* Main.Activity_Resume: Started")
Wait For (CheckProviderInstaller) complete (success As Boolean)
lblVersion.Text = "Eljay Delivery " & Application.VersionName & " (" & Application.VersionCode & ") on " & GlobalModule.ServiceHostName & GlobalModule.Secured
lblVersion.Enabled = True
lblCheckInOutStatus.Text = "You are currently checked " & GlobalModule.GetSettingDefaulted(GlobalModule.CHECKIN_STATE,"OUT")
If Starter.GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(Starter.GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then CallSubDelayed(Starter, "StartGPS")
End If[
/CODE]
Note: We see GPS 1.20 listed in libraries.
Last edited: