Android 上使用其他应用的功能
文章目录
//安卓打开指定APP功能,appPackageName,appClassName可以在Logcat中找到
ComponentName component = new ComponentName("appPackageName","appClassName");
Intent intent = new Intent();
intent.setComponent(component);
context.startActivity(intent);
Intent intentShowFile = new Intent(Intent.ACTION_GET_CONTENT);
intentShowFile.setType("*/*");
intentShowFile.addCategory(Intent.CATEGORY_OPENABLE);
startActivity(intentShowFile);
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论