String name = null;
try {
PackageManager pm = mContext.getPackageManager();
PackageInfo info = pm.getPackageInfo("tv.cngolf.vplayer", 0);
name = info.versionName;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
Android获取应用程序的版本信息
最新推荐文章于 2021-05-26 10:12:04 发布