从浏览器检测,如果特定的应用程序被安装在机器人 [英] Detect from browser if a specific application is installed in Android

查看:126
本文介绍了从浏览器检测,如果特定的应用程序被安装在机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一种方式来了解一个特定的应用程序从一个客户端Web浏览器上安装。该平台是Android系统。

I'm looking for a way to find out if a specific application is installed from a client-side web browser. The platform is Android.

例如我写我自己的网站,我写我自己的应用程序,现在我想,当用户来到自己的网站从Android手机浏览器。浏览器看,如果应用程序已经安装在手机上,如果不建议安装的应用程序。我能做到这一点?

For example I write my own web site and I write my own application, now I want to when user comes to my own site from Android phone Browser. The Browser look if the application is already installed on the phone and if not suggest to install application. Can I do that ?

推荐答案

您从JavaScript指的是在浏览器中运行?我认为,(希望),这是不可能的。我不希望任何随机的网站,可以看到安装了哪些应用程序。

You mean from JavaScript running in the browser? I think (hope) that's impossible. I wouldn't want any random website to be able to see what apps are installed.

如果您希望用户安装特定的应用程序,你可以提供您的网站市场链接:<一href="http://developer.android.com/guide/publishing/publishing.html#marketintent">http://developer.android.com/guide/publishing/publishing.html#marketintent

If you want the user to install a particular app, you can provide a Market link on your website: http://developer.android.com/guide/publishing/publishing.html#marketintent

编辑:在之后的评论我的回答你的澄清,更加有用的答案出现了下面,它理应有更多的upvotes

这篇关于从浏览器检测,如果特定的应用程序被安装在机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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