Android Question Open appli phone and dial

ciginfo

Well-Known Member
Licensed User
Longtime User
Hi,
With ClickableTV library, I have on a Label a number phone. I want, when I click on the number phone, to open application phone and dial automatically the number phone.
What is the command to open resident application phone and how to dial the number?
Thank you
 

NJDude

Expert
Licensed User
Longtime User
Like this:
B4X:
Dim i As Intent
i.Initialize(i.ACTION_CALL, "tel: 555-1234")
StartActivity(I)
You also need to add this permission to your manifest (in case you don't already have it)
B4X:
AddPermission(android.permission.CALL_PHONE)
 
Upvote 0
Top