Mobile application making calls in Delphi

0

Would you like to know if it is possible to make calls with a mobile application built in delphi?

If it is possible to show an example of how to implement.

    
asked by anonymous 23.12.2015 / 21:29

1 answer

0

Yes applications built in delphi allow us to access api's as PhoneDialer to make calls for example. But there are a number of other libraries that allow us to perform other operations on the device.

A very simple example of how to implement this feature in an application would look like this:

Before we start implementing the code that will make the call, we must add the uses clause of the following Namespaces: FMX.PhoneDialer, FMX.Platform.

Now just implement the following code, which is very simple to build.

var 
 chamada: IFMXPhoneDialerService;
begin

   TPlatformServices.Current.SuportsPlatformService(IFMXPhoneDialerService, IInterface(chamada));



  if Assigned(chamada) then
     chamada.Call('numero a ser chamado');



end;
    
23.12.2015 / 21:29