Android 通过浏览器链接安装 APK
我想创建一个有两个链接的网页。一个下载代理本身(这非常简单,只需链接到设置了适当 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将网址拦截器添加到您的应用程序中,就像此处提到的那样,但据我所知,无法执行您所要求的操作。
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.
检查 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.