简体   繁体   English

Android - 检查APP是否已安装

[英]Android - Check if APP is already installed

I wanted to have a web page with a link pointing to the apk app in a market (this is possible), but if the app already exists on the device did not want him to redirect the market but that the app is open soon as the app on the device. 我希望有一个网页,其链接指向市场中的apk应用程序(这是可能的),但如果该应用程序已存在于设备上,则不希望他重定向市场,但该应用程序很快就会打开设备上的应用程序。

Is that possible? 那可能吗?

thank you 谢谢

There's no way to do that on a website. 在网站上没有办法做到这一点。 You can create a link to the application on Market, and if the user is on an Android device, he or she will be redirected to the Market application - from here it's possible to see if it's installed or not. 您可以在Market上创建指向该应用程序的链接,如果用户使用的是Android设备,则他或她将被重定向到Market应用程序-从此处可以查看是否已安装该应用程序。

Should you want to do it in Java code, you can use @Pedro's advice with a simple check. 如果要用Java代码完成此操作,可以使用@Pedro的建议进行简单检查。

您可以使用PackageManager.getInstalledApplications并检查是否列出了您要查找的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有办法检查用户是否已经安装了应用程序 - Is there a way to check if the user had already installed the app Android:您能检查应用安装是否为最新安装或已经安装了较旧版本的应用吗? - Android: can you check if an app installation is fresh or there was already an older version of the app installed? Android检查已安装的应用程序失败 - Android check installed app failed Android QR检查是否已安装应用程序 - Android QR check if app installed Android Facebook oAuth-尚未安装代理的应用程序 - Android Facebook oAuth - The proxied app is not already installed 如果该应用已安装在android中,如何发出警报 - how to give alert if the app is already installed in android 如何检测设备上是否已安装Android App? - How to detect, if Android App was already installed at the device? 如何检测手表中是否已安装我的Android应用的Wear应用 - How to detect if the Wear app of my Android app is already installed in the watch 未安装android应用,具有相同软件包名称的应用已存在 - android app not installed, the app with same package name already exists 应用程序如何检查Android是否已安装库? - How to applications could check if a library is already installed in Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM