Custom Instagram URL Schema for Android

I need to launch Instagram application using HTML link. For iPhone, I use iPhone Hooks ( Instagram iPhone Hooks ).

How can I do the same for Android?

+5
source share
1 answer

There is a thread on this subject in the group of developers of APIs in Google groups.

According to Mike Krieger, who is one of the Instagram developers, you can already achieve interaction with documents on Android using Intents. If this is what you need, you should look at the Android document for sharing with intent .

( Instagram ) :

Intent intent = new Intent(Intent.ACTION_SEND);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
intent.setType("image/*");
Uri uri = Uri.fromFile(getFileStreamPath(pathToImage));
intent.putExtra(Intent.EXTRA_STREAM, uri);
startActivity(Intent.createChooser(intent, "How do you want to share?"));

pathToImage - , , , .

, , , - URL. , , , Google Groups, , .

+1

All Articles