sharing image for android
<p>Hi I want to share the image to mail, facebook, etc.. I can able to share the text to social media, but im unable to share the image. How shall i do share my image? my code is below: </p>

<pre><code>Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse("http://www.golfcourseranking.com/pics/1419630512.jpg");

sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);sharingIntent.setType("image/jpeg");
startActivity(Intent.createChooser(sharingIntent, "Share image using"));
</code></pre>
