2Pascal-新时代的Pascal

 找回密码
 立即注册
搜索
热搜: fastreport
查看: 690|回复: 0
打印 上一主题 下一主题

delphi android 调用JAR中的SERVICE

[复制链接]

1

主题

3

帖子

10

积分

新手上路

Rank: 1

积分
10
跳转到指定楼层
楼主
发表于 2019-4-13 08:46:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
京东数码购物支持本站
Var
  AIntent: JIntent;
begin
  AIntent := TJIntent.Create;
  AIntent := TJIntent.JavaClass.Init(SharedActivityContext,
    TJLang_class.JavaClass.forName
    (StringToJString('com.XXX.XXXService'), True,
    SharedActivity.getClassLoader));

  SharedActivity.startService(AIntent);
end;

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|新时代Pascal论坛

GMT+8, 2024-4-28 02:37 , Processed in 0.056486 second(s), 24 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表