Reputation: 841
Sorry for repeated question. I searched a lot on the Internet, got a lot of links too. But none of it worked correctly.
I've an Image in a drawable folder. Wanted to share t via apps like Gmail, Messaging etc. How's it possible? I used the following code:
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://" + getPackageName() + "/" + R.drawable.myImage));
But this stop the "com.android.mms" what to do?
Also, is any permission required to be added? Or am I missing out anything? Does this sharing work on Android 2.2, cause I'm testing on it?
Upvotes: 1
Views: 1108
Reputation: 688
you have to store your image to the internal/external storage first, then you can be able to share it by using Gmail, ....
Upvotes: 2