[英]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上找到 。
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.