T th0masM Member Licensed User Longtime User May 26, 2013 #1 Hello, I want to dial a phone number, which includes special keys. Example: Part One +49 (123456) 5555 Part two Special Wait button -> , Part Three 7777 Part Four Special Exit button -> # It does not work. PhoneNumber = "+49 (123456) 5555" & "," & "77777" & "#" Special Keys on the Smartphone Keyboard I found this link: http://developer.android.com/referen...ils.html#PAUSE I think the special keys are not implemented in the Phone Lib. Can someone help me. Thomas Attachments Telefontasten.png 24.9 KB · Views: 709
Hello, I want to dial a phone number, which includes special keys. Example: Part One +49 (123456) 5555 Part two Special Wait button -> , Part Three 7777 Part Four Special Exit button -> # It does not work. PhoneNumber = "+49 (123456) 5555" & "," & "77777" & "#" Special Keys on the Smartphone Keyboard I found this link: http://developer.android.com/referen...ils.html#PAUSE I think the special keys are not implemented in the Phone Lib. Can someone help me. Thomas
Erel B4X founder Staff member Licensed User Longtime User May 26, 2013 #2 Note that these two lines are identical: Code: Copy PhoneNumber = "+49 (123456) 5555" & "," & "77777" & "#" PhoneNumber = "+49 (123456) 5555,77777#" PhoneNumberUtils.PAUSE is identical to ",". The problem is in the dialer that you are using. What are you doing with this string? Upvote 0
Note that these two lines are identical: Code: Copy PhoneNumber = "+49 (123456) 5555" & "," & "77777" & "#" PhoneNumber = "+49 (123456) 5555,77777#" PhoneNumberUtils.PAUSE is identical to ",". The problem is in the dialer that you are using. What are you doing with this string?
T th0masM Member Licensed User Longtime User May 28, 2013 #3 I use the normal dialer. my Code: Sub btnMailboxMonitor_Click 'Mailbox abhören If txtDurchwahl.Text = "" OR txtVorwahl.Text = "" Then ToastMessageShow("Durchwahl oder Vorwahl nicht vorhanden",False) Else AddProtocolEntry("Mailbox abhören") PhoneNumber = txtVorwahl.Text & "86" & txtDurchwahl.Text & "," & txtPin.Text & "#" StartActivity(ph.Call(PhoneNumber)) End If End Sub Thomas Upvote 0
I use the normal dialer. my Code: Sub btnMailboxMonitor_Click 'Mailbox abhören If txtDurchwahl.Text = "" OR txtVorwahl.Text = "" Then ToastMessageShow("Durchwahl oder Vorwahl nicht vorhanden",False) Else AddProtocolEntry("Mailbox abhören") PhoneNumber = txtVorwahl.Text & "86" & txtDurchwahl.Text & "," & txtPin.Text & "#" StartActivity(ph.Call(PhoneNumber)) End If End Sub Thomas
Erel B4X founder Staff member Licensed User Longtime User May 30, 2013 #4 Try to URL encode the string with StringUtils library. Upvote 0