Search code examples
androidinstagram

Android Intent to open instagram posting view


How to open Instagram app in posting mode (so the same view we get after clicking plus at home screen within Instagram app)? I've seen android apps which are doing that, however wasn't able to find information explaing how to achieve it.

That code works for opening the home view:

Uri uri = Uri.parse("http://instagram.com/");
Intent likeIng = new Intent(Intent.ACTION_VIEW, uri);
likeIng.setPackage("com.instagram.android");
startActivity(likeIng);

Perhaps there is some other uri which could work?


Solution

  • After a bit of research it turned out that deep linking with 'instagram://share' opens the desired view.