Phone Call function with Widget don't work?

Fox

Active Member
Licensed User
Longtime User
B4X:
Sub Process_Globals
   Dim Phone As PhoneCalls
End Sub

Sub Phone_Click
Phone.Call(12344) 
End Sub

this code in an widget modul don't work? The PhoneCalls are unsupported in widget?!
 

kickaha

Well-Known Member
Licensed User
Longtime User
I dod not know if PhoneCalls works in a Widget or not, but the phone number needs to be a string
B4X:
Sub Process_Globals
   Dim Phone As PhoneCalls
End Sub

Sub Phone_Click
Phone.Call("12344") 
End Sub

Give it a try.
 
Upvote 0

Fox

Active Member
Licensed User
Longtime User
I dod not know if PhoneCalls works in a Widget or not, but the phone number needs to be a string
B4X:
Sub Process_Globals
   Dim Phone As PhoneCalls
End Sub

Sub Phone_Click
Phone.Call("12344") 
End Sub

Give it a try.

tnx

I have solved it with:

Sub Process_Globals
Dim Phone As PhoneCalls
End Sub

Sub Call_Click
StartActivity(Phone.Call("12344"))
End Sub
 
Last edited:
Upvote 0
Top