从Android浏览器打开Instagram [英] Open Instagram from Android Browser

查看:214
本文介绍了从Android浏览器打开Instagram的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Intent,hooks,API,集成,十几个神秘的javascripts,xml架构,URL解释器,帮助器,框架...

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

这是我3天阅读博客,SDK,教程以实现一个非常简单的目标:通过点击Android浏览器中的URL打开Instagram。我觉得有点不可思议,我需要5分钟才能在iOS上制作它。我甚至不知道我应该分享什么代码,因为我甚至没有成功地出错...至少它会是什么!

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!

要做到这一点我有一部Android手机。我打开浏览器访问我的网站。现在我想添加一个链接来打开Instagram相机。在iOS上我只是引用:

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>

在Android上编码同样的东西真的很难吗?我不打算把它放在另一个应用程序中。这只是一个普通的网站。

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.

推荐答案

经过大量的研究和测试 - 是的,甚至更多:S - 我终于可以说除非您想强制访问者手动下载其他内容,否则这是不可能的。我不喜欢它。这不是一个优雅而简单的解决方案。

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.

这篇关于从Android浏览器打开Instagram的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆