Hi all.
I'm trying to find out what is caused this error.
Here is my code - it show a google map for the client address.
Variable Main.SelectedClientAddress holds the client address.
Thank you
I'm trying to find out what is caused this error.
Here is my code - it show a google map for the client address.
Variable Main.SelectedClientAddress holds the client address.
B4X:
private Sub ShowMap
Try
Dim App As Application
Dim urlMap As String="https://www.google.com/maps/search/"
Dim su As StringUtils
Dim Address As String
Address=Main.SelectedClientAddress
Address=Address.Replace(CRLF," ")
Address=su.EncodeUrl(Address,"UTF-8")
urlMap=urlMap & Address
If App.CanOpenURL(urlMap) Then
App.OpenURL(urlMap)
Else
HUD.ToastMessageShow("Address cannot be shown",True)
End If
Catch
Log("ShowMap " & LastException.description)
Main.modFun.ShowError("UnscheduledClockIn_ShowMap " & LastException.description)
End Try
End Sub
Thank you