android 获取已安装程序列表
摘要:
publicvoidbtn1Click(Viewv){Stringstr=null;PackageManagermanager=this.getPackageManager();List<PackageInfo>pkgList=manager.getInstalledPackages(0);for(inti=0;i<pkgList.size();i++){PackageInfopI=pkgList.get(i);str=str+"\n"+pI.packageName;}TextViewtv1=(TextView)findViewById(R.id.text 阅读全文
posted @ 2012-08-26 21:53 jxgxy 阅读(3019) 评论(0) 推荐(0) 编辑