How to share a image via email and social network like facebook,twitter?
i was trying to send a image via emai for the following code but only file name only attached the mail, not actual image it is showing 0 K bytes . any idea?
- Code: Select all
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
String path = "//sdcard/images/one.jpg";
Uri screenshotUri = Uri.parse(path );
startActivity(Intent.createChooser(sharingIntent, "Share image using"));