get app version android
String versionName = context.getPackageManager()
.getPackageInfo(context.getPackageName(), 0).versionName;
get app version android
String versionName = context.getPackageManager()
.getPackageInfo(context.getPackageName(), 0).versionName;
get app version android
String versionName = context.getPackageManager()
.getPackageInfo(context.getPackageName(), 0).versionName;
get app version android
PackageManager manager = this.getPackageManager();
PackageInfo info = manager.getPackageInfo(this.getPackageName(), PackageManager.GET_ACTIVITIES);
Toast.makeText(this,
"PackageName = " + info.packageName + "\nVersionCode = "
+ info.versionCode + "\nVersionName = "
+ info.versionName + "\nPermissions = " + info.permissions, Toast.LENGTH_SHORT).show();
get app version android
PackageManager manager = this.getPackageManager();
PackageInfo info = manager.getPackageInfo(this.getPackageName(), PackageManager.GET_ACTIVITIES);
Toast.makeText(this,
"PackageName = " + info.packageName + "\nVersionCode = "
+ info.versionCode + "\nVersionName = "
+ info.versionName + "\nPermissions = " + info.permissions, Toast.LENGTH_SHORT).show();
android get sdk version
if(android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.LOLLIPOP){
// Code For Android Version higher equal to LOLLIPOP(21)
} else if(android.os.Build.VERSION.SDK_INT > 21){
// Code For Android Version higher than LOLLIPOP(21)
} else{
// Code For Android Version lower than LOLLIPOP(21)
}
android get sdk version
if(android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.LOLLIPOP){
// Code For Android Version higher equal to LOLLIPOP(21)
} else if(android.os.Build.VERSION.SDK_INT > 21){
// Code For Android Version higher than LOLLIPOP(21)
} else{
// Code For Android Version lower than LOLLIPOP(21)
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us