Android 读取并返回设备上安装的应用程序
我是android的新开发人员,正在努力开发我的应用程序,因为我需要一个函数或其他东西来读取并返回安装在设备上的应用程序,如果有人能帮助我,我感谢你Android 读取并返回设备上安装的应用程序,android,Android,我是android的新开发人员,正在努力开发我的应用程序,因为我需要一个函数或其他东西来读取并返回安装在设备上的应用程序,如果有人能帮助我,我感谢你//获取安装的标签名称 //getting label name which is install PackageManager p = mContext.getPackageManager(); List<ApplicationInfo> info = p.getInstalledApp
//获取安装的标签名称
//getting label name which is install
PackageManager p = mContext.getPackageManager();
List<ApplicationInfo> info = p.getInstalledApplications(0);
for(int i=0;i<info.size();i++){
String label = p.getApplicationLabel(info.get(i)).toString();
System.out.println("LABEL:"+label);
}
PackageManager p=mContext.getPackageManager();
列表信息=p.GetInstalledApplication(0);
对于(int i=0;i