5
votes
Vote UpVote

Dialing a phone number from an iOS FireMonkey application

The Hacker's Corner – Q: How do you dial a phone number from an iOS application? A: You open a URL with the following format - tel://123456789 Below is a very simple Delphi iOS unit that will do the trick. Notice the {$IFDEF FPC} blocks that ensure that the application also compiles and is "testable" on Windows. Enjoy! unit Unit1; {$IFDEF FPC} {$mode objfpc}{$H+} {$modeswitch objectivec1} {$ENDIF} interface uses SysUtils, Types, UITypes, Classes, Variants, FMX_Types, FMX_Controls, FMX_Forms, FMX_Dialogs {$IFDEF FPC} , iPhoneAll {$ENDIF} ; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: ...
Favorite? Off-Topic? Anders Ohlsson @ 2011-10-04 21:15

Statistics

Visits: 441
Votes: 5
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
DavidI
Rodrigo
stukelly
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)