private void getVersionInfo()
{
try
{
PackageInfo info = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0);
this.versionCode = info.versionCode + "";
this.versionName = info.versionName;
}
catch (NameNotFoundException e)
{
Log.e(THIS_FILE, "Exception" , e);
}
}
{
try
{
PackageInfo info = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0);
this.versionCode = info.versionCode + "";
this.versionName = info.versionName;
}
catch (NameNotFoundException e)
{
Log.e(THIS_FILE, "Exception" , e);
}
}