一、 获取系统版本号:
PackageInfo info = this.getPackageManager().getPackageInfo(this.getPackageName(), 0);
int versionCode=nfo.versionCode
string versionName=info.versionNam

二、获取系统信息:

String archiveFilePath=”sdcard/download/Law.apk”;//安装包路径 
 PackageManager pm = getPackageManager(); 
 PackageInfo info = pm.getPackageArchiveInfo(archiveFilePath, PackageManager.GET_ACTIVITIES); 
 if(info != null){ 
 ApplicationInfo appInfo = info.applicationInfo; 
 String appName = pm.getApplicationLabel(appInfo).toString(); 
 String packageName = appInfo.packageName; //得到安装包名称 
 String version=info.versionName; //得到版本信息 
 Toast.makeText(test4.this, “packageName:”+packageName+”;version:”+version, Toast.LENGTH_LONG).show(); 
 Drawable icon = pm.getApplicationIcon(appInfo);//得到图标信息 
 TextView tv = (TextView)findViewById(R.id.tv); //显示图标 
 tv.setBackgroundDrawable(icon);

三、获取安装路径和已安装程序列表
android中获取当前程序路径
getApplicationContext().getFilesDir().getAbsolutePath()
(2)android取已安装的程序列表
List packageInfoList = getPackageManager().getInstalledPackages(0);

四、获取图片、应用名、包名
PackageManager pManager = MessageSendActivity.this.getPackageManager();
List appList = Utils.getAllApps(MessageSendActivity.this);
for(int i=0;i