办法知道如果我的应用程序安装 [英] Way to know if my application is installed

查看:77
本文介绍了办法知道如果我的应用程序安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法(意向)知道,如果我的应用程序安装? 我也跟着下面的链接,但我的申请没有得到的意图已安装我的应用程序时,

Is there any way (intent) to know if my application is installed ? I followed the below link, but my application don't get the intent when my app is installed

<一个href="http://stackoverflow.com/questions/3510544/android-how-to-intercept-the-install-application-intent">Android - 如何拦截安装应用程序的意图

推荐答案

如果您要执行的应用程序中的任何code,它必须已经安装(很明显,不是吗?),所以你不能从你的应用程序一个检查是否您的应用程序是安装还是不行。

If you want to execute any code from app A, it has to be already installed (it's obvious, isn't it?), so you can't check from your app A whether your app APP is installed or not.

这是,如果你想知道当你死了一样:你死了之后,就不可能知道。而另一方面,其他人可以知道,当你死了......同为Android的情景:一个应用程序B能知道是否已安装应用程序A或不能(通过使用 getInstalledPackages 或意图或其他)。

It's like if you want to know when you are dead: after you die, it will be impossible to know it. On the other hand, someone else can know when you die... same for the Android scenario: an app B can know whether app A is installed or not (by using getInstalledPackages or intents or whatever).

这篇关于办法知道如果我的应用程序安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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