var path = "/test.pdf";
var ComponentName = plus.android.importClass('android.content.ComponentName');
var Intent = plus.android.importClass('android.content.Intent');
var Uri = plus.android.importClass('android.net.Uri');
var Environment = plus.android.importClass('android.os.Environment');
var main = plus.android.runtimeMainActivity();
var skRoot = plus.android.invoke(Environment.getExternalStorageDirectory(), "getPath");
var comp = new ComponentName("com.dynamixsoftware.printershare", "com.dynamixsoftware.printershare.ActivityPrintDocuments");
var intent = new Intent();
intent.setComponent(comp);
intent.setAction("android.intent.action.VIEW");
intent.setType(type);
intent.setData(Uri.parse(skRoot + path));
main.startActivity(intent);
小雨_0128
- 发布:2020-04-08 11:27
- 更新:2023-07-29 09:08
- 阅读:4789
11 个评论
要回复文章请先登录或注册
蕉太狼二叔
FullStack
小雨_0128 (作者)
w***@gmail.com
w***@gmail.com
3***@qq.com
小雨_0128 (作者)
小雨_0128 (作者)
小雨_0128 (作者)
小雨_0128 (作者)