Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("file/*");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file.getPath()));
startActivity(Intent.createChooser(intent, "title");
使用 Action Intent.ACTION_SEND 发送 Intent。如果您的设备上有保管箱应用程序,它将起作用。
祝你好运!