1//安卓打开指定APP功能,appPackageName,appClassName可以在Logcat中找到 2 ComponentName component = new ComponentName("appPackageName","appClassName"); 3 4 Intent intent = new Intent(); 5 6 intent.setComponent(component); 7 8 context.startActivity(intent); 9 10Intent intentShowFile = new Intent(Intent.ACTION_GET_CONTENT); 11intentShowFile.setType("*/*"); 12intentShowFile.addCategory(Intent.CATEGORY_OPENABLE); 13startActivity(intentShowFile);
Android 上使用其他应用的功能
Stella981
2021-10-11
1184 0 0
点赞
收藏
评论区
加载中...