Sunday 7 April 2013

Get AndroidManifest.xml Content in code




Inside the  onCreate() method use
try
{
    String app_ver = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
}
catch (NameNotFoundException e)
{
    Log.v(tag, e.getMessage());
}

No comments:

Post a Comment