Open Instagram from Android Browser

心不动则不痛 提交于 2019-12-22 07:19:18

问题


Intent, hooks, API, integration, dozen of cryptic javascripts, xml schemas, URL interpreters, helpers, frameworks...

It's 3 days that i'm reading blogs, SDK, tutorials to achive a very simple goal: open Instagram by clicking an URL in the Android browser. I find it a bit incredible that i needed 5 minutes to make it on iOS. I don't even know what code i should share since i don't even succeded in having an error... at least it would be something!

To make it short i have an Android phone. I open the browser to visit my website. Now i want to add a link to open Instagram camera. On iOS i simply reference to:

<a href="instagram://app">Open Instagram</a>
<a href="instagram://camera">Take a picture</a>

Is it really that hard to code the same thing on Android? I'm not looking to make it inside another App. It's just a normal website.


回答1:


After a lot of researches and tests - yeah, even more :S - i can finally state that it's not possible unless you want to force your visitors to manually download additional contents. I don't like it. It isn't an elegant and easy solution.

Please notice that i'm only talking for websites. You you are developing an App you can achive this quite easily with intents.



来源:https://stackoverflow.com/questions/23876333/open-instagram-from-android-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!