If Starter.rp.Check(Starter.BACKGROUND_LOCATION_PERMISSION) = False Then
MsgboxAsync("Please allow app to always allow location services", "")
Wait For Msgbox_Result (unused As Int)
Dim in As Intent
in.Initialize("android.settings.LOCATION_SOURCE_SETTINGS", "")
StartActivity(in)
'catch the Activity_Resume event to prevent an endless loop if the user denies the permission.
Wait For Activity_Resume
End If