当前位置: 代码迷 >> Android >> Android开发片断–获取已安装的软件的信息并启动
  详细解决方案

Android开发片断–获取已安装的软件的信息并启动

热度:23   发布时间:2016-05-01 14:26:03.0
Android开发片段–获取已安装的软件的信息并启动

 for (PackageInfo pack : getPackageManager().getInstalledPackages(0)) {   			 ApplicationInfo info = pack.applicationInfo;			 String pkgName = info.packageName;			 Log.d("Example", "packageName: " + pkgName);              Log.d("Example", "manageSpaceActivityName:" +  getPackageManager().getLaunchIntentForPackage(pkgName)); 			 //启动             //Intent in = getPackageManager().getLaunchIntentForPackage(pkgName);             //startActivity(in);		 }		
?
  相关解决方案