标签:
PackageInfo pkgInfo = getPackageManager().getPackageInfo(getApplication().getPackageName(), 0); //获取应用名 String appName = pkgInfo.applicationInfo.loadLabel(getPackageManager()).toString(); //获取版本号 String versionNo = pkgInfo.versionName;
标签:
原文地址:http://blog.csdn.net/whx405831799/article/details/42238749