Answers for "android get app build name"

0

android get app build name

try {
    PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
    String version = pInfo.versionName;
} catch (PackageManager.NameNotFoundException e) {
    e.printStackTrace();
}
Posted by: Guest on January-24-2021

Code answers related to "android get app build name"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language