Android Question Open appli phone and dial

Similar threads

B4A Question Dial a phone
B4A Question Dial a phone number
B4A Code Snippet Draw on top of other apps permission
B4A Code Snippet [B4X] Bytes To File
B4A Question Share txt files

ciginfo

Active Member
Licensed 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
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)
 
Top