Android获取在桌面上有图标的app列表的方法
16lz
2021-01-24
Android获取在桌面上有图标的app列表的方法:
Intent intent = new Intent(Intent.ACTION_MAIN);intent.addCategory(Intent.CATEGORY_LAUNCHER);List appsWithLauncher = getPackageManager().queryIntentActivities(intent, 0);
注:这种方法无法获取到app动态生成的桌面快捷方式
更多相关文章
- android asset中 zip包解压sdcard
- android 连接webservice
- Android(安卓)JNI入门第三篇――jni头文件分析
- android源码编译出现No private recovery resources for TARGET_
- android IApplicationToken分析
- android学习资料与资源记录
- Android(安卓)面试题(经典)
- appt命令检测Apk信息的方法
- android通用适配器