我正在尝试list of apps that are installed
在手机/模拟器上检索 a。我正在使用以下代码段返回应用程序列表,但是,它正在返回null
. 我必须添加一些permission in Android Manifest
还是我错过了其他东西?
pManager = getPackageManager();
List<ApplicationInfo> appList =pManager.getInstalledApplications(PackageManager.GET_META_DATA);
if(appList == null)
System.out.println("null");