title: Android Intent share Image from url path without saving in local
body: <p>Hi I need to share image using intent the image is stored in server path ho to achieve it</p>
  
  <pre><code>private void shareContent(String urlpath)
  {
      URL url = null; //Some instantiated URL object
      try {
          url = new URL(urlpath);
          URI uri = url.toURI();
  
  
      Intent sharingIntent = new Intent(Intent.ACTION_SEND);
      URI screenshotUri = uri;
      sharingIntent.setType("image/*");
      sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
      context.startActivity(Intent.createChooser(sharingIntent, "Share image using"));
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>This is the method that I am using when share button is clicked and I am working in this list adapter</p>