打电话

打电话

引用单元

Androidapi.JNI.Telephony, Androidapi.JNIBridge, Androidapi.JNI.GraphicsContentViewText,
Androidapi.Helpers,Androidapi.JNI.JavaTypes,FMX.platform, FMX.PhoneDialer, FMX.platform.Android

打电话

procedure Tfcall.Button1Click(Sender: TObject);
var
phone: IFMXPhoneDialerService;
begin
if TPlatformServices.Current.SupportsPlatformService(IFMXPhoneDialerService, IInterface(phone)) then
begin
phone.Call(Edit1.Text);
//监听电话请用phone.OnCallStateChanged事件
end;
end;

posted @ 2018-04-08 08:33  delphi中间件  阅读(436)  评论(0编辑  收藏  举报