[英]In Android how to check app is installed in your phone or not
How to check if app is installed or not on phone.如何检查手机上是否安装了应用程序。 If the App is installed, open the app, otherwise open the Appstore link to download the app.
如果应用已安装,请打开应用,否则打开应用商店链接下载应用。 If the app is already there i used the follwing code.
如果应用程序已经存在,我使用以下代码。
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("package name");
startActivity(LaunchIntent);
For this use case, you can use firebase dynamic links or some alternative for it like branch.io , even you can add a deep link to specify which screen of the app must be opened!对于这个用例,您可以使用firebase 动态链接或其他替代方法,例如branch.io ,甚至可以添加深层链接来指定必须打开应用程序的哪个屏幕!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.