delphi fmx 从App程序直接跳转到支付宝付款转帐页面


本文整理自网络,侵删。

 
// 要用到的单元
uses
Androidapi.JNI.GraphicsContentViewText,  Androidapi.Helpers;


procedure TForm1.Button1Click(Sender: TObject);
var
AIntent: JIntent;
ACode, AUrl:string;
begin
ACode:='fkx02276cbc6y0wchg5cac3';
//如:以上为我的支付宝二维码  www.delphifmx.com
AUrl:='intent://platformapi/startapp?saId=10000007'
+'&clientVersion=3.7.0.0718'
+'&qrcode=https%3A%2F%2Fqr.alipay.com%2F'+ACode+'%3F_s'
+'%3Dweb-other&_t=1472443966571#Intent'
+';scheme=alipayqr'
+';package=com.eg.android.AlipayGphone'
+';end';
AIntent:= TJIntent.JavaClass.parseUri(stringToJstring(AUrl), TJIntent.JavaClass.URI_INTENT_SCHEME);
TAndroidHelper.Context.startActivity(AIntent);

end;

//来源:http://www.delphifmx.com/node/51

相关阅读 >>

Delphi读取android短信信息

Delphi 新版内存表 fdmemtable

Delphi编程之win10桌面图标设置

Delphi closehandle的解释

Delphi分离汉字和英文字母

dbgrid导出excl表

Delphi锁定鼠标 模拟左右键 静止一会自动隐藏鼠标

Delphi2010中tresourcestream流使用

Delphi trimleft 删除字符串左边的空格

Delphi的窗体文件(dfm)文件中的汉字提取出来?

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



打赏

取消

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

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

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

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

评论

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