I have to develop an Android application which should access a specific version of another application installed on the same machine. Is there a way we can handle this check programmatically? I am an Android newbie. Any help would be greatly appreciated.
Thanks in Advance,
Navin
Use
PackageManagerandgetPackageInfo()to get aPackageInfoobject for the specific application, identified by its package (e.g.,com.commonsware.mygreatapp). TheversionCodeandversionNamefields on thePackageInfowill have the information you seek.