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);

评论

暂无评论