How to programmatically share multiple files of different MIME types within the same Android intent?
问题 I am working on an Android application that is already successfully sharing a generated PDF file via Bluetooth using the following method: public static void sharePdfFile(Context ctx, String pathAndFile) { try { Intent share = new Intent(Intent.ACTION_SEND); share.setPackage("com.android.bluetooth"); share.setType("application/pdf"); share.putExtra(Intent.EXTRA_STREAM, Uri.parse(pathAndFile)); share.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ctx.startActivity(share); } catch (Exception e) {