Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


how to use Instagram from Android open on certain user and add caption to uploaded image


Instagram for Android is very limited, from what I have seen so far. My scenario is simple: allow the user to edit a picture and when he presses on Send:

Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg");

Then with queryIntentActivities() I search to see if Instagram is installed. If it is I send the path of my image to be uploaded:

 share.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///" + path to myfile.png"));
 share.setClassName(resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name);
 share.putExtra(Intent.EXTRA_SUBJECT, "Sample subject");
 share.putExtra(Intent.EXTRA_TEXT, "Sample text");
 share.putExtra(Intent.EXTRA_TITLE, "Sample title");

The result: the image is uploaded using Instagram app (of course if I am logged in), but I can't add an Caption to it. None of the putExtra has any effect. So, is there any way to add a caption as intent parameter ?

And the other question, is it possible to open Instagram app with a certain user name filled in ?

 


asked Sep 13, 2013 in ANDROID by rajesh
edited Oct 19, 2015 by rajesh
0 votes
158 views



Related Hot Questions



Government Jobs Opening


...