Android 通过浏览器链接安装 APK

发布于 2024-10-08 07:16:28 字数 318 浏览 2 评论 0原文

我想创建一个有两个链接的网页。一个下载代理本身(这非常简单,只需链接到设置了适当 MIME 类型的 APK 文件),另一个用于启动第一步中下载的 APK 的安装过程。

我知道他们可以拉下栏并单击它,但这可能会让用户感到困惑(特别是在我们尝试创建的整个过程中)。是否有一个特殊的 URI 我可以用来开始安装,有点像“market://”的市场链接?

另外,有没有办法获取 APK 实际安装位​​置的元数据?例如,如果 APK 的链接是“http://company.com/setting=123”,我可以从 URL 中提取“setting=123”吗?我怀疑不是,但我想问一下也没什么坏处。

I want to create a web page that has two links. One that downloads the agent itself (which is pretty easy, just linking to the APK file with the appropriate MIME types set), and the other to start the install process for the APK downloaded in step one.

I know they can just pull down the bar and click on it, but that can be confusing for users (especially in the overall process we are trying to create). Is there a special URI I can use to start the installation, sort of like the market link of "market://"?

Also, is there a way to get meta-data surrounding where the APK was actually installed from? For example, if the link for the APK is "http://company.com/setting=123", that I can pull in the "setting=123" from the URL? I suspect not, but I figured it couldn't hurt to ask.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

铃予 2024-10-15 07:16:28

您可以将网址拦截器添加到您的应用程序中,就像此处提到的那样,但据我所知,无法执行您所要求的操作。

You can add url interceptors to your app like it's mentioned here but AFAIK there is no way to do what you are asking.

深白境迁sunset 2024-10-15 07:16:28

检查 open2go.com
它可能对你有帮助。

此处示例

http://open2go.com/ http://m.getjar.com/mobile/49757/angry-birds-seasons/

open2go.com/ + url
市场:模式有效。

check open2go.com
it may help you.

example here

http://open2go.com/http://m.getjar.com/mobile/49757/angry-birds-seasons/

open2go.com/ + url
market: schema works to.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文