随笔分类 -  Delphi 移动Android

delphi xe10 获取屏幕截图
摘要://截取屏幕图片 function MakeScaleScreenshot(Sender: TControl): TBitmap; function GetScreenScale: Single; var ScreenService: IFMXScreenService; begin Result := 1; if TPlatformServices.Curr... 阅读全文

posted @ 2019-07-05 11:51 滔Roy 阅读(1378) 评论(0) 推荐(0) 编辑

delphi xe10 网络连接
摘要://当前网络状态(引用 Androidapi.JNI.Network.pas) IsConnected //连接 IsWiFiConnected //Wifi是否连接 IsMobileConnected //移动网络是否连接 阅读全文

posted @ 2019-07-05 11:49 滔Roy 阅读(818) 评论(0) 推荐(0) 编辑

delphi xe10 蓝牙
摘要://蓝牙 System.Bluetooth //单元中主要包含以下几个类 TBluetoothManager、TBluetoothDeviceList、TBluetoothAdapter、TBluetoothDevice、TBluetoothService、 TBluetoothServiceList、TBluetoothSocket TBluetoothManager //蓝牙管理器,用于蓝... 阅读全文

posted @ 2019-07-05 11:47 滔Roy 阅读(974) 评论(0) 推荐(0) 编辑

delphi xe10 网络文件传送
摘要:待补充 阅读全文

posted @ 2019-07-05 11:44 滔Roy 阅读(521) 评论(0) 推荐(0) 编辑

delphi xe10 消息操作
摘要://消息提醒(从手机屏幕顶部向下滑动,出现的提示消息) NotificationC: TNotificationCenter; procedure TNotificationsForm.btnSendNotificationImmediatelyClick( Sender: TObject); var Notification: TNotification; begin { ver... 阅读全文

posted @ 2019-07-05 11:42 滔Roy 阅读(806) 评论(0) 推荐(0) 编辑

delphi xe10 手机内部系统相关操作(手机信息、震动、剪贴板、键盘、电话、拨号)
摘要://获取手机信息 function GetPhoneInfo(): string; Var TelephonyManager: JTelephonyManager; TelephonyServiceNative: JObject; begin result := ''; TelephonyServiceNative := SharedActivityContext.getSyst... 阅读全文

posted @ 2019-07-05 11:40 滔Roy 阅读(1760) 评论(0) 推荐(0) 编辑

delphi xe10 麦克风、摄像头操作
摘要:TakePhotoFromCameraAction1: TTakePhotoFromCameraAction; // 通过手机摄像头获取图片TakePhotoFromLibraryAction1: TTakePhotoFromLibraryAction; //获取手机已存在图片ShowShareSh 阅读全文

posted @ 2019-07-05 11:30 滔Roy 阅读(1272) 评论(0) 推荐(0) 编辑

delphi xe10 传感器操作
摘要:更新日期:2019.07.05 阅读全文

posted @ 2019-07-05 11:27 滔Roy 阅读(532) 评论(0) 推荐(0) 编辑

Delphi XE10 文件目录/路径操作 (Andorid、ios、windows)
摘要:Delphi XE10 文件目录/路径操作 (Andorid、ios、windows) //获取临时文件路径(支持安卓、IOS) function GeFileName(const AFileName: string): string; begin {$IFDEF ANDROID} Result : 阅读全文

posted @ 2019-07-05 11:22 滔Roy 阅读(3940) 评论(0) 推荐(0) 编辑

delphi 安卓开发常用
摘要:delphi 安卓开发有几个常用的pas: FMX.Helpers.Android, Androidapi.JNI.Net, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.JavaTypes, FMX.platform, FMX.Pla 阅读全文

posted @ 2019-07-05 11:14 滔Roy 阅读(556) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示