Hi,

         I want to share image. so i can able to share image via gmail but
not able share through bluetooth,wifi,facebook...etc.

        here the snippet is below. please find and If anyone have idea
share with me and help me out.


Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("image/png");
 shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Image
Attachment");
 shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,"Image
Attachement");
Uri
pngUri=Uri.parse("android.resource://com.example.share/"+R.drawable.ic_launcher);
 shareIntent.putExtra(android.content.Intent.EXTRA_STREAM,pngUri);
startActivity(Intent.createChooser(shareIntent , "Send image using.."));



Thanks&Regards,
Ashwini V.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to