How to I put <VAR> string instead of the number you wrote?
is this will work?
If App.CanOpenURL("tel:") Then App.OpenURL("tel:" & Number )
Dim phonenumber As String
phonenumber = "0505552222"
If App.CanOpenUrl("telprompt:" & phonenumber) = True Then
App.OpenURL("telprompt:" & phonenumber)
End If
Dim phonenumber As String
phonenumber = "telprompt:0505552222"
If App.CanOpenUrl(phonenumber) = True Then
App.OpenURL(phonenumber)
End If
Sub Button1_click
Private phonenumber As String
phonenumber = "tel:632222222"
If App.CanOpenUrl(phonenumber) = True Then
App.OpenURL(phonenumber)
End If
End Sub
Knows anybody if this error is related to the use of the emulator?
-canOpenURL: failed for URL: "tel:632222222" - error: "This app is not allowed to query for scheme tel"
B4X:Sub Button1_click Private phonenumber As String phonenumber = "tel:632222222" If App.CanOpenUrl(phonenumber) = True Then App.OpenURL(phonenumber) End If End Sub
Tx
Add
to your app to allow it to call.B4X:#QueriesSchemes: tel
Knows anybody if this error is related to the use of the emulator?
-canOpenURL: failed for URL: "tel:632222222" - error: "This app is not allowed to query for scheme tel"
B4X:Sub Button1_click Private phonenumber As String phonenumber = "tel:632222222" If App.CanOpenUrl(phonenumber) = True Then App.OpenURL(phonenumber) End If End Sub
Tx
just remove "tel:" from your phone number
-canOpenURL: failed for URL: "632222222" - error: "Invalid input URL"
No, this is not the way...
B4X:-canOpenURL: failed for URL: "632222222" - error: "Invalid input URL"
The protocol is a must.
Tx
Dim phonenumber As String
phonenumber = "0505552222"
If App.CanOpenUrl("telprompt:" & phonenumber) = True Then
App.OpenURL("telprompt:" & phonenumber)
End If
Knows anybody if this error is related to the use of the emulator?
now i see that u r using an emulator. i dont think that phone calls can be performed from an emulator!!
you should try your code on a real phone