Hi all,
In the B4A version of the app (using B4XPages framework from @Erel) I created a two buttons that directly opens a WhatsApp chat and a phone call with a specific recipient number that I pass as a parameter (see CODE1 and CODE2 below).
The question is: "which is the corresponding code for B4i version (#if B4i) ?
In the B4A version of the app (using B4XPages framework from @Erel) I created a two buttons that directly opens a WhatsApp chat and a phone call with a specific recipient number that I pass as a parameter (see CODE1 and CODE2 below).
The question is: "which is the corresponding code for B4i version (#if B4i) ?
B4X:
'CODE 1...
#if B4A
private phonenum as string = "000000000000"
private WA_URI as string = "https://wa.me/" & phonenum
Private p As PhoneIntents
StartActivity(p.OpenBrowser(WA_URI))
#End If
#if B4i
'..... ?
#End If
B4X:
'CODE 2...
private phonenum as string = "000000000000"
If phonenum = "" Then
toast.VerticalCenterPercentage = 50
toast.Show("......")
Return
Else
#if B4A
Dim i As Intent:i.Initialize(i.ACTION_VIEW, "tel:" & phonenum)
StartActivity(i)
#End If
#if B4i
#End If
End If
Last edited: