H hdmiacc Member Licensed User Longtime User Sep 25, 2016 #1 hi i have a question about webview or other idea. its possible if i using webview function using html contain phone number and how to code it. if i click on that phone number. it will popup the PhoneCalls function. hope someone can help me. sorry for my poor english. Last edited: Sep 25, 2016
hi i have a question about webview or other idea. its possible if i using webview function using html contain phone number and how to code it. if i click on that phone number. it will popup the PhoneCalls function. hope someone can help me. sorry for my poor english.
DonManfred Expert Licensed User Longtime User Sep 25, 2016 #2 See WebviewExtras example. Spoiler: htmlcall Click <a href="javascript:void(0)" onclick="B4A.CallSub('CallNumber', true, '+49000000')">Call +49-000-000</a> to call a Sub in the B4A demo code that will call the Phonedialer with a given phonenumber. Code: Copy Sub CallNumber(phonenumber As String) Log($"CallNumber(${phonenumber})"$) Dim PC1 As PhoneCalls StartActivity(PC1.Call(phonenumber)) End Sub Attachments webviewextrasdemo.zip webviewextrasdemo.zip 9.8 KB · Views: 329 Upvote 0
See WebviewExtras example. Spoiler: htmlcall Click <a href="javascript:void(0)" onclick="B4A.CallSub('CallNumber', true, '+49000000')">Call +49-000-000</a> to call a Sub in the B4A demo code that will call the Phonedialer with a given phonenumber. Code: Copy Sub CallNumber(phonenumber As String) Log($"CallNumber(${phonenumber})"$) Dim PC1 As PhoneCalls StartActivity(PC1.Call(phonenumber)) End Sub
H hdmiacc Member Licensed User Longtime User Sep 25, 2016 #3 Thnaks DonManfred. you always my saver. Upvote 0
DonManfred Expert Licensed User Longtime User Sep 25, 2016 #4 you can click on the like button on the helpful post to show your appreciation Upvote 0
H hdmiacc Member Licensed User Longtime User Sep 25, 2016 #5 already click. by the way. thanks a lot Upvote 0