简体   繁体   English

使用cordova如何获得Android设备上已安装的应用程序列表?

[英]Using cordova how can i get list of installed apps on android device?

Any cordova pulgin ? 任何cordova pulgin? What all things i need to import in .java file for getting installed apps on android? 我需要在.java文件中导入以获取在Android上安装的应用程序的所有内容?

I know it's late to answer the question, but I faced the same problem and tested both plugins Deep Mehta referred to in his answer. 我知道回答这个问题已经很晚了,但是我遇到了同样的问题,并测试了Deep Mehta在他的回答中提到的两个插件。 unfortunately none of them worked. 不幸的是,他们都没有工作。 The problem was when testing on devices that use company's custom UI such as HUAWEI, plugins he referred to were only returning the launcher itself!! 问题是在使用公司的自定义UI(如HUAWEI)的设备上进行测试时,他提到的插件只返回启动器本身!

After more digging I finally found a nice plugin which works like a charm!The plugin is called cordova-plugin-appavailability and is available at https://github.com/ohh2ahh/AppAvailability . 经过更多的挖掘后,我终于找到了一个很好的插件,它就像一个魅力!这个插件叫做cordova-plugin-appavailability ,可以在https://github.com/ohh2ahh/AppAvailability上找到

嗨,Adarsh你可以检查这个插件和这个插件 ,以获取已安装的应用程序列表。

Try cordova-plugin-intent-list plugin. 试试cordova-plugin-intent-list插件。 It returns applications list with Base64 encoded icons. 它返回带有Base64编码图标的应用程序列表。 Also you can get Intent label and package name (ie to start app with this plugin). 您还可以获取Intent标签和包名称(即使用插件启动应用程序)。

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

相关问题 如何获取 Android 设备上已安装应用程序的列表 - How to get a list of installed apps on Android device 如何获取用户在 Android 设备上安装的应用列表? - How to get the list of apps that have been installed by a user on an Android device? Android:如何确定该设备上是否安装了Samsung Apps市场? - Android: How can I tell if Samsung Apps market is installed on the device? 为什么在 Flutter 中无法获取 Android 的已安装应用程序列表? - Why can't I get a list of installed apps for Android in Flutter? 如何获取所有已安装应用的列表? - How can I get a list of all installed apps? 如何获取 Android 11 中已安装应用程序的列表 - How to get a list of installed apps in Android 11 如何使用终端获取android设备上所有应用程序的列表 - How to get the list of all apps on android device using terminal 如何使用cordova InAppBrowser为用户提供在使用Android设备时关闭浏览器的方法? - How can I get the cordova InAppBrowser to provide a way for the user to close the browser when using an Android device? 如何在列表中获取所有共享应用程序(安装在设备上)? - How to get all share apps (installed on the device) in a list? 如何使用 Cordova 在同一设备上获取其他已安装应用程序的版本? - How to get version of the other installed app on same device using Cordova?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM