Checking external app version name in android
<p>I would like to know how to read installed apk version.
For example, from my app i would like to know what version of Skype is installed on my phone.</p>

<p>To Read my app version i use:</p>

<pre><code>PackageInfo pinfo = null;
pinfo = getPackageManager().getPackageInfo(getPackageName(), 0);
String versionName = pinfo.versionName;
</code></pre>

<p>Of course with try/catch surrounded.</p>
