Android - 检查APP是否已经安装 [英] Android - Check if APP is already installed

查看:28
本文介绍了Android - 检查APP是否已经安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个网页,其中包含指向市场中的 apk 应用程序的链接(这是可能的),但如果该应用程序已存在于设备上,则不希望他重定向市场,但该应用程序已打开只要设备上的应用程序.

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.

这可能吗?

谢谢

推荐答案

在网站上没有办法做到这一点.您可以创建一个指向 Market 应用程序的链接,如果用户使用的是 Android 设备,他或她将被重定向到 Market 应用程序 - 从这里可以查看它是否已安装.

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.

如果您想在 Java 代码中执行此操作,您可以通过简单的检查使用 @Pedro 的建议.

Should you want to do it in Java code, you can use @Pedro's advice with a simple check.

这篇关于Android - 检查APP是否已经安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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