Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android get app build name

try {
    PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
    String version = pInfo.versionName;
} catch (PackageManager.NameNotFoundException e) {
    e.printStackTrace();
}
Comment

PREVIOUS NEXT
Code Example
Java :: java program to convert milliseconds to minutes and seconds 
Java :: show all spring boot beans 
Java :: java basic program 
Java :: 7877777777777777777777777 
Java :: csv compare 
Java :: pythagoras method in java 
Java :: Java comment vérifier une égalité de String 
Java :: close GUI in jvava 
Java :: android send fragment context 
Java :: my maven project give error when adding javax.xml.bind dependency 
Java :: javadoc commands 
Java :: java swing on close 
Java :: Java read in 
Java :: initialize empty dictionary java 
Java :: arrondi java 
Java :: java list of a class has a string that is equal to 
Java :: java user home directory macos 
Java :: Java peek() Method 
Java :: generate objects with for loop java 
Java :: custom dialog in android 
Java :: java array quick sort 
Java :: login.html 
Java :: how to read space separated integers in java 
Java :: create a string in java 
Java :: new int[] java 
Java :: java check if dates are the same day 
Java :: array methods in java 
Java :: android studio how to call api 
Java :: save file to disk java 
Java :: java stream dristinct 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =