PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Managing phone calls in Android with WM21
Managing phone calls in Android with WM21
Iniciado por guest, 12,jul. 2016 02:00 - 6 respuestas
Publicado el 12,julio 2016 - 02:00
Hello All:

I need to manage phone calls (dial, answer, etc) in an Android Device. Is it possible to do this with WM21?

Thanks
Gus
Publicado el 12,julio 2016 - 11:19
Hey Gus,

Of course it's possible:
http://help.windev.com/en-US/…

Pre WM21, I think the Windows phones were limited, although I've not tried the tapi functions with WM21.
Publicado el 12,julio 2016 - 13:47
Hi everybody

I wouldn't be too optimist...

AFAIK, the functions available in WM are able to :
- start the normal telephony app and pass it a phone number (the user THEN has to VALIDATE the call)
- and... that's all (no receiving call or anything of the sort)

@Darren: when you look at a help page like that, the fact that the android icon is ON means that at least ONE of the functions works for Android, not all of them, unfortunately

Best regards
Publicado el 12,julio 2016 - 15:25
@Fabrice, yes I know that :cheers: ...but sometimes a pointer to the general page is a good start 'cos the Help doesn't always bring back what you're looking for. Also, I've developed an Android app in WM20 and both the starting up the phone call app and then subsequently dialing the number worked fine for me :xcool:

@Gus - I can see why you asked the question; if you enter "telephone" or "phone" into the Help, it doesn't come back with much "Help". Sometimes it's a challenge to find what you're looking for in the Help isn't it?
Publicado el 12,julio 2016 - 21:37
Hello Darren:

Thanks for the help.

I created a new app in WM21 targeting Android, and commands such as tapiDial( ) and tapiAnswerCall( ) gives error "... function has no equivalent in WL/Android framework)

What functions are you using in your Android app?

Thanks
Gus
Publicado el 13,julio 2016 - 00:42
Hi Gus,

As I said, this was done in WM20; I've just installed the app on my new (replacement) Android 5.1 phone and the following code opens the dialler app and displays the phone number contained in EDT_Mobil (my requirement in this app wasn't to auto-dial):

IF EDT_Mobile <> "" THEN tapiDialerDisplay(EDT_Mobile) ELSE ToastDisplay("Please enter a telephone number") END
...but I believe tapiDialerCall does the same as above but also makes the call automatically.

HTH
Miembro registrado
4 mensajes
Publicado el 13,julio 2016 - 08:59
WM21 only supports "tapiDialerCall" in Android (as in the help doc).

I use ShellExecute("tel:xxxxxxx") for placing a call which works too ( it display the number in the dialer).