安卓获取所有应用信息为什么获取不到相机?
代码如下,是获取手机上所有的应用信息,但是,为什么就是没有相机呢?
public List<AppInfo> getAllAppInfo(){
PackageManager pm = m_context.getPackageManager();
List<ApplicationInfo> applicationinfos=pm.getInstalledApplications(0);
lAppInfo =new ArrayList<AppInfo>();
for(ApplicationInfo app:applicationinfos){
//if(FilterSystemApp(app)){
appInfo = new AppInfo();
appInfo.setAppName((String)app.loadLabel(pm));
appInfo.setDrawable(app.loadIcon(pm));
//appInfo.setPackageName(app.packageName);
//String className=getClassName(app.packageName);
//appInfo.setClassName(className);
lAppInfo.add(appInfo);
//}
}
return lAppInfo;
}