Delphi 打开Android应用信息


本文整理自网络,侵删。

 

unit Unit2;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Memo.Types,
  FMX.ScrollBox, FMX.Memo, FMX.Controls.Presentation, FMX.StdCtrls;

type
  TForm2 = class(TForm)
    Memo1: TMemo;
    Button2: TButton;
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

{$R *.fmx}

uses  Androidapi.JNI.GRaphicsContentViewText, Androidapi.Jni, Androidapi.JNI.JavaTypes, Androidapi.Helpers, Androidapi.JNIBridge,
  Androidapi.JNI.Util,  Androidapi.Jni.Provider,
  Androidapi.Jni.Net, Androidapi.Jni.App;



procedure TForm2.Button2Click(Sender: TObject);
var
  Intent: JIntent;
  uri: string;
begin

  uri := 'package:' + JStringToString(TAndroidHelper.Context.getPackageName);
  Intent := TJIntent.JavaClass.init(TJSettings.JavaClass.ACTION_APPLICATION_DETAILS_SETTINGS, StrToJURI(uri));

  TAndroidHelper.Activity.startActivity(Intent);

end;

end.

相关阅读 >>

crc16.pas

Delphi for xx in xx do 语法的使用示例

Delphi中如何设置更改编译生成的exe文件的保存位置

Delphi idhttp上传图给asp完美解决

Delphi 给字加边的又一个算法

Delphi 转换一批.bmp 文件为 .jpg

Delphi取得trichedit的光标当前位置

Delphi中sendmessage详细资料

Delphi 关闭显示器

Delphi stringgrid常用属性和常用操作

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...