标签:
public String getVersionName() { String versionName = ""; PackageManager packageManager = getPackageManager(); try { PackageInfo packageInfo = packageManager.getPackageInfo("com.example.picdemo", 0); versionName=packageInfo.versionName; } catch (NameNotFoundException e) { e.printStackTrace(); } return versionName; }
标签:
原文地址:http://www.cnblogs.com/guduey/p/4397413.html