How to parse the AndroidManifest.xml file inside an .apk package

This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)? This binary format is not discussed in the documentation here. Note: I want to access this information from outside the Android environment, preferably … Read more

How to change Android version and code version number?

How to change Android version and code version number Android Studio? I want to change apk file (app) on Google Play and I need to change Android version and code version number. I tried with this in AndroidManifest.xml file in Android Studio: <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.bestsoftcorporation.circle.app” android:versionCode=”101″ android:versionName=”2.0″> But it does not work. When I tried … Read more

Get Android .apk file VersionName or VersionCode WITHOUT installing apk

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. <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”xxx.xx.xxx” android:versionCode=”1″ android:versionName=”1.1″ > For example I want to check if a new version is uploaded on my IIS service, after install it on device, if it … Read more

How to set different label for launcher rather than activity title?

This question has been asked before – but with no satisfying answer at all! So I’m trying it again. I want to give my application launcher icon (the one that is displayed on the startscreen!) a different, shorter caption. It seems the launcher takes its label from the mainfest section about the main activity’s label, … Read more

How can you get the build/version number of your Android application?

I need to figure out how to get or make a build number for my Android application. I need the build number to display in the UI. Do I have to do something with AndroidManifest.xml? 33 Answers 33 If you’re using the Gradle plugin/Android Studio, as of version 0.7.0, version code and version name are … Read more

Android – Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23

I am getting the following tool tip in AndroidManifest.xml: App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent-filler. See issue explanation for more details. Adds deep links to get your app into the Google index, to get installs and traffic to your app from Google Search. Can … Read more