获取当前手机中安装软件列表
2010-09-11 00:09
531 查看
代码
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List<ResolveInfo> pkgAppsList = this.getPackageManager().queryIntentActivities( mainIntent, 0); for(int i = 0; i < pkgAppsList.size(); i++){ ResolveInfo info = pkgAppsList.get(i); Drawable drawable = info.loadIcon(getPackageManager()); ImageView image = new ImageView(this); image.setBackgroundDrawable(drawable); image.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); layout.addView(image); Log.v("dfadf", "dfasdf"); }
相关文章推荐
- 【代码】android 开发获取当前手机中安装的全部App列表
- 获取手机已安装应软件的列表
- 获取当前安装app列表
- Android获取手机安装的浏览器列表
- 如何获得Android手机的软件安装列表
- 获取手机的配置信息和当前软件的配置信息
- 如何获得Android手机的软件安装列表
- 获取手机当前后台程序列表
- Java获取系统安装软件列表
- android:获取已经安装软件列表
- Pyqt 获取windows系统中已安装软件列表
- android获取手机安装软件
- 如何获得Android手机的软件安装列表
- IOS开发 获取手机所有安装app列表,提交appstore 请慎用
- C++访问注册表获取已安装软件信息列表示例代码
- jail brak 获取当前安装app列表
- C++通过访问注册表获取已安装软件信息列表
- Android获取安装软件列表并启动某个app
- android:获取已经安装软件列表 .
- C# 获取本地安装的软件列表