public int getVerCode() {
int verCode = -1;
try {
verCode = InitInfoActivity.this.getPackageManager().getPackageInfo(
"seventh7.barcode.client.omeetting", 0).versionCode;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return verCode;
}
public static String getVerName(Context context) {
String verName = "";
try {
verName = context.getPackageManager().getPackageInfo(
"seventh7.barcode.client.omeetting", 0).versionName;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return verName;
}
int verCode = -1;
try {
verCode = InitInfoActivity.this.getPackageManager().getPackageInfo(
"seventh7.barcode.client.omeetting", 0).versionCode;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return verCode;
}
public static String getVerName(Context context) {
String verName = "";
try {
verName = context.getPackageManager().getPackageInfo(
"seventh7.barcode.client.omeetting", 0).versionName;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return verName;
}