摘要:
如图所示获取应用当前的版本号,很多客户端都存在的模块,今天标记下,实现代码如下: private String getVersionName() throws Exception{ PackageManager packageManager = getPackageManager(); PackageInfo packageInfo = packageManager.getPackageInfo(getPackageName(), 0); String version = packageInfo.versionName; ... 阅读全文