Home > > Sharing content in Android using ACTION_SEND Intent

Sharing content in Android using ACTION_SEND Intent

2011年11月14日星期一

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse(path);

sharingIntent.setType("image/png");
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
startActivity(Intent.createChooser(sharingIntent, "Share image using"));

 

http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent

0 Responses to "Sharing content in Android using ACTION_SEND Intent"