画像とテキストを共有するアプリを作成しました。現在、変数にテキストを含む画像を保存したいのですが、Androidのキャンバスで別の変数にテキストを含む画像を保存する方法が問題です。
つまり、Whatsappのような別のアプリにMMS (テキスト付きの画像) を共有したいのですが、以下のコードを使用して画像とテキストを共有すると、画像のみが共有されます。テキストも共有するためにここに欠けているものは何ですか?
Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra("sms_body",sheronWall);
intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File("android.resource://" + getPackageName()
+ "/drawable/" + drawableImageId +"")));
intent.setType("image/gif");
startActivity(Intent.createChooser(intent,"Send"));