title: share a photo in instagram
body: <p>i'm developping an app  and i'm trying to share a picture in Instagram .</p>
  
  <p>i'm using the code below : </p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_SEND);
  i.setType("image/jpeg");
  i.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///"+savedPhotoPath));//savedPhotoPath is the path of my picture stored somewhere in the sdcard
  startActivity(Intent.createChooser(i, "Share Image"));
  </code></pre>
  
  <p>the problem is that the instagramm is launched with the home activity,( i want to have the activity of share that picture to be launched ).</p>
  
  <p>i've tried to put the extras like this : </p>
  
  <pre><code>i.putExtra(Intent.EXTRA_STREAM, new File(savedPhotoPath));
  </code></pre>
  
  <p>and </p>
  
  <pre><code>i.putExtra(Intent.EXTRA_STREAM, Uri.parse(savedPhotoPath));
  </code></pre>
  
  <p>with the same result , always , the home activity of instagram application is launched .</p>
  
  <p>any ideas how to solve this problem? </p>
  
  <p>Regards, </p>