Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks as if Instagram's Android App ignores EXTRA_TEXT, EXTRA_SUBJECT and EXTRA_TITLE, so it seems that adding a caption while uploading an image is not possible. By the way, you can try different approaches to check if it ignores those extras in every case:</p> <p>OPTION #1: Changing the MIME type.</p> <p>You are setting the MIME type to "image/jpeg". Try using "image/<em>" or "</em>/*" to check if their app doesn't ignore those extras.</p> <pre><code>share.setType("image/*"); </code></pre> <p>or</p> <pre><code>share.setType("*/*"); </code></pre> <p>OPTION #2: </p> <p>As you are sending multiple MIME types (image and text), maybe their app is expecting ACTION_SEND_MULTIPLE instead of ACTION_SEND.</p> <pre><code>Intent share = new Intent(Intent.ACTION_SEND_MULTIPLE); </code></pre> <p>OPTION #3: Use <code>MediaStore.Images.Media.insertImage(ContentResolver cr, String imagePath, String name, String description)</code> function:</p> <pre><code>Intent share = new Intent(Intent.ACTION_SEND); share.putExtra(Intent.EXTRA_STREAM, Uri.parse(MediaStore.Images.Media.insertImage(getContentResolver(), "file:///" + path to myfile.png", "Sample title", "Sample description"))); share.setType("image/jpeg"); share.setClassName(resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name); </code></pre> <p>OPTION #4: Post your issue in their <a href="https://groups.google.com/forum/?fromgroups#!forum/instagram-api-developers">developer forum</a>, although there are similar questions that remain unsolved:</p> <ul> <li><p><a href="https://groups.google.com/forum/?fromgroups#!searchin/instagram-api-developers/caption%2420action_send/instagram-api-developers/PJDuG2sTDlM/6bno5dZmoTEJ">https://groups.google.com/forum/?fromgroups#!searchin/instagram-api-developers/caption$20action_send/instagram-api-developers/PJDuG2sTDlM/6bno5dZmoTEJ</a></p></li> <li><p><a href="https://groups.google.com/forum/?fromgroups#!searchin/instagram-api-developers/caption/instagram-api-developers/7XUKm9HSAdg/rJbdSnOmXacJ">https://groups.google.com/forum/?fromgroups#!searchin/instagram-api-developers/caption/instagram-api-developers/7XUKm9HSAdg/rJbdSnOmXacJ</a></p></li> </ul> <p>And don't forget to come back and tell us their answer!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload