Android Question Is this sub from your Android GPS tutorial running in the foreground or background?

Vern

Member
Licensed User
Longtime User
I've been staring at this for a while and can't determine if the service is being started in the foreground or background. Which is it?

Sub Activity_Resume
If Starter.GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(Starter.GPS1.LocationSettingsIntent)
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
End Sub
 

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…