Problem with PhoneCalls

D

Deleted member 103

Guest
Hi guys,

can anyone tell me why this code does not work, or why the connection is not established?
When I enter the number on the phone then works.
B4X:
Sub mnuCall_Click
   Dim p As PhoneCalls
   StartActivity(p.Call("*101#"))
End Sub


Thank you already in advance.
Filippo
 

AndroIwe

Member
Licensed User
Longtime User
Edit: Found my error, "End sub" on the wrong line ;-)) ... Thanxs


Hello,

i tried this:

B4X:
Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   Activity.LoadLayout("test")

Sub mnuCall_Click
    Dim p As PhoneCalls
    StartActivity(p.Call("*101%23"))

End Sub

But I got an Syntax error ...

Core and Phone - libraries are loaded ...

Any ideas?



Thank you,
Stephan
 
Last edited:
Upvote 0
Top