Android_得到手机上已经安装的应用信息

Android_得到手机上已经安装的应用信息
public static List<ApplicationInfo> getAllInstalledApp(Context context) {
      List<ApplicationInfo> installedPackageList = new ArrayList<ApplicationInfo>();
      List<ApplicationInfo> list = context.getPackageManager().getInstalledApplications(0);
      for (int i = 0; i < list.size(); i++) {
           installedPackageList.add(list.get(i));
      }
      return installedPackageList;
 }

你可能感兴趣的:(Android_得到手机上已经安装的应用信息)