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

查看:411
本文介绍了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天全站免登陆