How can I get programmatically get the version code or version name of my apk from the AndroidManifest.xml file after downloading it and without installing it.
If you are using version 2.2 and above of Android Studio then in Android Studio use Build → Analyze APK then select AndroidManifest.xml file.