Hi Guys, I already have readed all possible tutorials that are here
and implemented fusedLocation provider trough the starter service.
But I want to wait in Activity_Resume until permissions are confirmed (or declined)
<code>
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
' HERE I WANT TO WAIT
Wait For Starter.rp_PermissionResult (Permission As String, Result As Boolean)
If Result = True Then
ToastMessageShow("Do sometning", True)
End If
</code>
But it doesnt work..
I was following this example:
Sub ReadFile (f As String)
rp.CheckAndRequest(rp.PERMISSION_READ_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result = False Then
ToastMessageShow("No permission...", True)
Else
Log(File.ReadString(File.DirRootExternal, f))
End If
End Sub
Just trying to call PermissionResult from starter not from activity, because of how the fused location was implemented.
Result is I cannot even compile "cannot cast type .....to number"
thanks for advices.