Android列出系统中所有安装的app的信息
PackageManager pm = getPackageManager(); List<PackageInfo> packages = pm.getInstalledPackages(PackageManager.GET_UNINSTALLED_PACKAGES); for(PackageInfo packageInfo : packages){ //应用图标 Drawable icon = packageInfo.applicationInfo.loadIcon(pm); //标题 CharSequence lable = packageInfo.applicationInfo.loadLabel(pm); //包名 String packageName = packageInfo.packageName; }