博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在android上准确获取应用列表
阅读量:7276 次
发布时间:2019-06-29

本文共 484 字,大约阅读时间需要 1 分钟。

hot3.png

这个列表是与launcher桌面中的应用一样,以此记下:

public void run_3(){	  Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);  		 mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);  		 PackageManager pm=easygoApplication.getInstance().getPackageManager();			List
resolveInfos =pm.queryIntentActivities(mainIntent, 0); Collections.sort(resolveInfos, new ResolveInfo.DisplayNameComparator(pm)); int i=resolveInfos.size(); for(int j=0;j

 

转载于:https://my.oschina.net/u/948588/blog/124449

你可能感兴趣的文章
如何掌控自己的时间和生活 ---阿兰·拉金
查看>>
Linux shell编程与实践(九)之shell与shell的组合
查看>>
Foundation HTML5 Canvas中的2处错误
查看>>
chcapter 11 熵和信息
查看>>
GFS文件系统
查看>>
面向对象数据库NDatabase_初识
查看>>
svmtrain princomp 出现的问题
查看>>
Compiling LIBFFM On OSX 10.9
查看>>
HDU1319 POJ1595 UVA406 UVALive5490 ZOJ1312 Prime Cuts【素数筛选+打表】
查看>>
事务的特性及事务的隔离级别(转)
查看>>
转:如何正确彻底删除webpack 全局或是局部?
查看>>
【Python】Symbol Review
查看>>
电脑 F键(功能键)的具体作用
查看>>
数组常用的几种方法
查看>>
面对对象编程(封装)
查看>>
python (ploit2)(histogram)
查看>>
Python2.7.3 学习——第一个程序 Hello Python World
查看>>
d3----line_color_gradient 学习记录
查看>>
源码搭建SVN+Apache+Setpass
查看>>
A debugger is already attached
查看>>