首页 > 代码库 > Android获取未安装包的信息

Android获取未安装包的信息

 public String PATH = Environment.getExternalStorageDirectory()
   .getAbsolutePath()
   + File.separator
   + GlobalConfig.WENJIANJIA
   + File.separator + GlobalConfig.WENJIANJIAZIWENJIANJIA+ File.separator+"WENJIANMINGZI";

    ApplicationInfo packApplication = packInfo.applicationInfo;
    packApplication.publicSourceDir = PATH;
    packApplication.sourceDir = PATH;

    apkInfo.icon = packApplication.loadIcon(pMan);
    apkInfo.name = packApplication.loadLabel(pMan).toString();

Android获取未安装包的信息