Make a phone call

Anybody tried to make a phone call from app? I thought something like this should work.

{code}
procedure TForm1.Execute;
var
  dial: IFMXPhoneDialerService;
begin
  dial := TPlatformServices.Current.GetPlatformService(IFMXPhoneDialerService) as IFMXPhoneDialerService;
  try
    dial.Call(number);
  finally
    dial := nil;
  end;
end;
{code}
0
grega
6/28/2013 9:06:46 AM
embarcadero.delphi.firemonkey 4901 articles. 4 followers. Follow

3 Replies
4241 Views

Similar Articles

[PageSpeed] 43
Get it on Google Play
Get it on Apple App Store

I haven't tried it, but if you click on 'More snippets' on the welcome page, there is an example of how to do this.

> {quote:title=grega loboda wrote:}{quote}
> Anybody tried to make a phone call from app? I thought something like this should work.
> 
> {code}
> procedure TForm1.Execute;
> var
>   dial: IFMXPhoneDialerService;
> begin
>   dial := TPlatformServices.Current.GetPlatformService(IFMXPhoneDialerService) as IFMXPhoneDialerService;
>   try
>     dial.Call(number);
>   finally
>     dial := nil;
>   end;
> end;
> {code}
0
Mike
6/28/2013 3:24:20 PM
grega loboda wrote:

> Anybody tried to make a phone call from app? I thought something like this should work.

Have a look at the project in:

  <Public Documents>\RAD Studio\11.0\Samples\iOSCodeSnippets\iOS PhoneDialer

-- 
Dave Nottage [TeamB]
0
Dave
6/29/2013 3:04:50 AM
I use this (edited) code in a live, distributed app...it definitely works for me on iPhone 4 & 5, iOS 6+.

---------------
uses FMX.PhoneDialer;

procedure CallAPhone(const ThePhone: string);
var
  PhoneDialerService: IFMXPhoneDialerService;
begin
  // The following line is essential...
  if TPlatformServices.Current.SupportsPlatformService(IFMXPhoneDialerService, IInterface(PhoneDialerService)) then
  begin
    if ThePhone <> '' then
      PhoneDialerService.Call(ThePhone);
  end;
end;
---------------


IanB.



> {quote:title=grega loboda wrote:}{quote}
> Anybody tried to make a phone call from app? I thought something like this should work.
> 
> {code}
> procedure TForm1.Execute;
> var
>   dial: IFMXPhoneDialerService;
> begin
>   dial := TPlatformServices.Current.GetPlatformService(IFMXPhoneDialerService) as IFMXPhoneDialerService;
>   try
>     dial.Call(number);
>   finally
>     dial := nil;
>   end;
> end;
> {code}
0
Ian
7/2/2013 2:04:46 AM
Reply:

Similar Artilces:

How to make call to phones?
Hello, How can we develop website that provide calls to landlines, mobiles,etc? Is there any way out? Thanks~~ Please mark the post as ANSWER if it helps you ~~ A lot of third party as well as .net API now available. Please google. Few important links were given below:http://msdn.microsoft.com/en-us/library/aa446543.aspx [FOR API]http://forums.asp.net/t/639771.aspx [FOR VB.NET]http://www.daniweb.com/forums/thread29372.html HOPE IT WILL HELP YOU. Shawpnendu Bikash Maloroyhttp://shawpnendu.blogspot.com...

Making Phone calls!
I just want to know how powerbuilder can make a simple phone call.. Like the Windows Dialer? If any one can help me?? please send me an email at roh2okt@hotmail.com ...

Making a phone call
Hi friends. I am looking for a module to make a phone call, please tell me if you know one. Bye and Thanks a lot. ...

How to make phone calls!!
Hello: My problem is a merly question, how to make phone calls using PB7? I've been looking arround information on newsgroup and i cant found anything that help me. How to start? What do i need? where to get it? where to look? Those are some of the question that I have. Thanks in Advance. In article <OrQWNjsa$GA.306@forums.sybase.com>, roh2okt@hotmail.com says... > Hello: > > > My problem is a merly question, how to make phone calls using PB7? I've been > looking arround information on newsgroup and i cant found anything that help > me...

How to make a phone call through .NET?
Hi Everyboby,  I know nothing about the mobile controls. I need a web page which will call a cellphone number on page_load.  I have an window service will execute this page once in a while. Do I need special hardware devices for this? How can I do this through asp.net's controls? Thank you very much!  ...

Making Firemonkey more compatible with Delphi
I have programmed in Delphi since 1995 Delphi1 I am now evaluating Delphi XE4. It boggles my mind, why embarcadero has lost the most important aspects of Delphi. Simplicity and Fast User Interface creation. I can easily see how Firemonkey can be improved to bring it in line with traditional Delphi Techniques by doing the following. 1. All Firemonkey controls need a data aware counterpart. 2. Firemonkey Styles need to be converted to TControl descendants. 3. ie. TLayout goes to TPanel ( TFMXPanel ) 4. ie. TRectangle does to TFrame TFMXFrame ) 5. LiveBindings gets placed un...

Make phone call over WebIDE
Hello everybody, I'm new and I'm just try to starting to solve some easy bugs. For one of these I have to make a phone call but I'm actually running the B2G using the webIDE and I can't understand how I can simulate the network. Any advice? Thanks in advance. ...

unable to make phone call.
Hi,=20 I'm using Flame Device with Firefox OS 2.0.0.0 -prerelease-. Whenever I try to call the number after I make a call to some other number,= it shows the error (screenshot attached) 'Unable to make a phone call now.= Cannot make a call if you are already dialing, please hang up first.=20 I close the phone app and I always hang up the call but still it shows the = same error. Regards, Tanzeel Khan ...

[ios] make a phone call
Hello, I have a phone number on a tbutton, I want to call this number when I click on the button. How to do this ? Thank you for your help. Regards, Dany http://blogs.embarcadero.com/ao/2013/05/01/39454 .... and ... http://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html .... might help. ...

How to make phone calls over my local network?
I have a LAN network at home. Every place (room) has 2 LAN connections, they arrive on a LAN-switch. I now like to equip every room with a telephone (not a pc ). Can someone point me towards a system that can make this possible. The purpose is to communicate between the phones of my network, I do not want to communicate with the public switching network. I am looking for a system that is not wireless, I want to use my LAN-cables. The telephone communication must always work even without a internet connection. In case there is internet connected: then I also like the idea to put on...

Make a phone call from ASP.NET
Hello Everybody I am very much new to this technology. Probably you an say that I haven't done this before . But now I got a project in which I have to make a phone call from web page using ASP.NET technology. But I am not getting from where to start. Can anybody help me in solving my problem. Thanks and Regards SOFTVIRGO Make a link with the following url, replace 18005551212 with the number that should be called when it is clicked. wtai://wp/mc;18005551212 please how can imake phone call in mobile web page ? please with details.... For a quick sample: h...

making phone calls w/ C#?
is this possible? specifically placing a call and a voice API sending a message? i know java has the voice api, what about C#?GO HOKIES!!! If device supports WTAI and WTA.Public.makeCall then you can use WTA links to init a phonecall. It is not somehow related to C#, it's purely the case of mobile device. You can check device HTTP request headers to see if it has UAProf file URL specified and if it has, you hac download this file and handle it using XML ja XSLT to find out support for WTAI.Gunnar Peipman-- General Protection Fault-- Illegal Page Fault-- Not My Fault...

Help for making phone calls from PB
I nedd to develop an application wich makes phone calls automatically using a customer directory database. I have been looking for information over the web, and I found that usin TAPI I can work with telephone comunications. So, I need more information using this API with PowerBuilder 8. The telepohne calls will be using normal Phone to Phone using a toggle switch for out calls, and I don't know if the pc's has to use modem conection to the toggle switch... Please, send me all the information about this topic!!!!! Thanks You probably want to look for a third party TAPI...

After missing 1 phone call, phone doesn't recognize calls anymore
Hi all, sorry to crosspost between Bugzilla and the mailing list, but this looks pretty severe to me and I hope someone can try and validate my bug here. https://bugzilla.mozilla.org/show_bug.cgi?id=877401 I start up the phone, call myself with Skype: everything is OK, I hear dial tone in Skype, phone rings. I now hang up on Skype. Missed call message appears on phone. Phone goes to sleep. I call myself second time, dial tone in Skype, the phone wakes up (so something going on), but nothing shows up in phone. Can't pick up call. What the ? I have attached the ADB logs of the call co...

Web resources about - Make a phone call - embarcadero.delphi.firemonkey

Android phone name generator
Just click on the logo. ∞ Read this on The Loop

Exploded Phone 5
I upgrade my t-shirt every year, too.

My Phone - Wikipedia, the free encyclopedia
01.05.2128.0401 / October 6, 2009 ; 2 years ago ( 2009-10-06 ) Microsoft My Phone is an online service with a companion mobile client application ...

Google will reportedly exert ‘Apple-like’ control over future Nexus phones
... Pro and Surface Book , we shouldn't be too surprised to learn that Google is considering similar moves with its Nexus line of smartphones. The ...

Tori Spelling is representing a psychic phone line now: good career move?
... her storage containers (you know she’s not going to pay off her debt ), because she just signed a deal as a spokesperson for a psychic phone ...

Falcon Hotspot Serves Up Wi-Fi Better Than Your Phone Does
... will be available from T-Mobile, and should max out the strength and range of their network. Granted, it’s possible to just use your phone ...

Xiaomi didn't authorize US phone sales
Rumors that China's biggest smartphone maker would sell its phones in the U.S. were answered earlier this week ... and then not.

By 2020, more people will own a phone than have electricity
The proliferation of mobile phones will continue as mobile data traffic jumps tenfold over the next four years, according to a study by Cisco. ...

'Just drop off a phone,' redefined
This IT pilot fish manages the company's cell phones along with his other duties, so he's the one who has to deliver a replacement phone to a ...

Google wants its Nexus phones to be more like the iPhone
... putting its hardware on par with the best devices from rival manufacturers. But Google wants the Nexus lineup to be even more like the iPhone. ...

Resources last updated: 2/3/2016 8:05:00 PM