ios - Android - can i open Instagram app on given hashtag? -


i'm working on app have published in app store, making android build. in ios use uri one:

instagram://tag?name=myhashtag 

it opens instagram app, showing grid of photos corelated hashtag. unfortunately, in android, below code doesn't work:

intent hashtagintent = new intent(intent.action_view,         uri.parse("instagram://tag?name=myhashtag") ); startactivity(hashtagintent); 

is there method make work? it's not core feature of app, don't want use instagram's api.

i worked bit instagram before , figured out how open pic or profile in app. long there no link on instagram website hashtags don't know how totally you. in case, how open pic on instagram app app:

intent insta_intent = getpackagemanager().getlaunchintentforpackage("com.instagram.android"); insta_intent.setcomponent(new componentname("com.instagram.android", "com.instagram.android.activity.urlhandleractivity")); insta_intent.setdata(uri.parse("http://instagram.com/p/gjflqsbqtj/")); startactivity(insta_intent); 

change link http://instagram.com/_u/user open user's profile.

hope helps.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -