I have created my app which shares an image with text. Right now I want to save an image with text in a variable, but my problem is how to save image with text in another variable by canvas in Android.
That is, I want to share an MMS (image with text) to another app like Whatsapp, but when I use the code below for sharing image and text, only the image is shared. What's missing here to make it share the text as well?
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"));