It appears that Android Studio 2.2 Preview 4 substitutes "INSTANT_RUN" for the versionName in PackageInfo rather than what has been put in the manifest. Is there any other way of seeing what is in versionName in the manifest? The code I am using is:
gstrVersion = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;