S susu Well-Known Member Licensed User Longtime User Nov 25, 2010 #1 With Phone library, I can send SMS but can't call any number. Did anybody can call?
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2010 #2 Do you see any error? Can you post your code? Upvote 0
S susu Well-Known Member Licensed User Longtime User Nov 25, 2010 #3 There's no error, just nothing happen. Here the code. Sub Globals Dim Phone3 As PhoneCalls Dim Button1 As Button Dim PhoneNumber As EditText End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("b4atest") End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Button1_Click Phone3.Call(PhoneNumber.Text) End Sub Click to expand... Upvote 0
There's no error, just nothing happen. Here the code. Sub Globals Dim Phone3 As PhoneCalls Dim Button1 As Button Dim PhoneNumber As EditText End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("b4atest") End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Button1_Click Phone3.Call(PhoneNumber.Text) End Sub Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2010 #4 The Call method was missing an example. Methods that return an Intent object do not actually perform the action. You should pass this Intent to StartActivity: B4X: StartActivity(Phone3.Call(...)) Upvote 0
The Call method was missing an example. Methods that return an Intent object do not actually perform the action. You should pass this Intent to StartActivity: B4X: StartActivity(Phone3.Call(...))
S susu Well-Known Member Licensed User Longtime User Nov 25, 2010 #5 Thanks Erel. That's why you need to release B4A soon (with help and reference list). Upvote 0