标签:
1.splash界面设计
项目名称为MobileManager
主Activity为SplashActivity
//获取当前应用程序的版本号
private String getVersion() {
String version = "";
//获取系统包管理器
PackageManager pm = this.getPackageManager();
try {
PackageInfo info = pm.getPackageInfo(getPackageName(), 0);
version = info.versionName;
System.out.println("SplashActivity.getVersion()"+getPackageName()+"/"+info);
} catch (Exception e) {
e.printStackTrace();
}
return version;
}
标签:
原文地址:http://www.cnblogs.com/zero2015/p/4608995.html