Facebookやメールなどでテキストと画像を共有する必要があります。今は次のコードを使用しています。
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.settings_share_text));
//Uri path = Uri.parse("android.resource://com.android.mypackage/" + R.drawable.arrow);
Uri path = Uri.parse("android.resource://com.android.mypackage/drawable/arrow.png");
intent.putExtra(Intent.EXTRA_STREAM, path );
Intent mailer = Intent.createChooser(intent, null);
startActivity(mailer);
問題は、「arrow.png」を使用すると、「添付ファイルを表示できませんでした」と表示され、画像が添付されないことです。.pngを削除すると、後で添付ファイルを開くことができなくなります。基本的に、ドローアブルといくつかのテキストからpngを添付し、ACTION_SENDを介して共有する必要があります