Hi, fellas.
I did this with FusedLocation to ask the user enable the Geo location services.
Specifically this "LocationSettingsStatus1.StartResolutionDialog("LocationSettingsResult1")"
We have equivalent this for GPS library. StartActivity(Starter.GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
But, can we use a StartResolutionDialog in GPS ? to facilitate to end user enable the GEO location.
To show this dialog but using GPS library. ? for end user is easier simple press "OK"
Thanks
I did this with FusedLocation to ask the user enable the Geo location services.
B4X:
Sub HandleLocationSettingsStatus(LocationSettingsStatus1 As LocationSettingsStatus)
Select LocationSettingsStatus1.GetStatusCode
Case LocationSettingsStatus1.StatusCodes.RESOLUTION_REQUIRED
Log("RESOLUTION_REQUIRED")
' device settings do not meet the location request requirements
' a resolution dialog is available to enable the user to change the settings
LocationSettingsStatus1.StartResolutionDialog("LocationSettingsResult1")
Case LocationSettingsStatus1.StatusCodes.SETTINGS_CHANGE_UNAVAILABLE
Log("SETTINGS_CHANGE_UNAVAILABLE")
' device settings do not meet the location request requirements
' a resolution dialog is not available to enable the user to change the settings
Msgbox("Unable to listen for location updates, device does not meet the requirements.", "Problem")
Activity.Finish
End Select
End Sub
Specifically this "LocationSettingsStatus1.StartResolutionDialog("LocationSettingsResult1")"
We have equivalent this for GPS library. StartActivity(Starter.GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
But, can we use a StartResolutionDialog in GPS ? to facilitate to end user enable the GEO location.
To show this dialog but using GPS library. ? for end user is easier simple press "OK"
Thanks