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
Post a Comment