Monday, February 29, 2016

Android 앱 버전 정보 불러오기

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

No comments:

Post a Comment