| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

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;                    }