I want to know the build version of the re-app So I want to print it out on the UI Do I have to touch the Android manifest file?
android android-manifest android-emulator
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
String version = pInfo.versionName;
int verCode = pInfo.versionCode;
VerCode is the build version~
© 2024 OneMinuteCode. All rights reserved.