Linked Questions
42 questions linked to/from How can you get the build/version number of your Android application?
308 votes
0 answers
85k views
Get application version programmatically in android [duplicate]
Is there a way to get the android app version from code? Is it possible to do so?
2 votes
1 answer
3k views
How can I get the build number of my Android app? [duplicate]
How can I get the build number of my Android app and setText to a textview? For example, "Build # 91".
1 vote
1 answer
556 views
Output android versionname as string [duplicate]
I have my versionCode and versionName set in my manifest.xml android:versionCode="2" android:versionName="Alpha 1.2" But how do I output this as a string so the user can see what version of the app ...
237 votes
14 answers
363k views
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 ...
120 votes
10 answers
134k views
Check if application is on its first run [duplicate]
I am new to android development and and I want to setup some of application's attributes based on Application first run after installation. Is there any way to find that the application is running for ...
197 votes
8 answers
131k views
How can you get the Manifest Version number from the App's (Layout) XML variables?
I would like to have a way to reference the project's manifest version number in the main part of the code. What I have been doing up until now is to link the version number in a String XML file to ...
57 votes
14 answers
84k views
How do I get my application Version in Android
Can anyone tell me how to get the application version in Android?
62 votes
12 answers
113k views
How to allow users to check for the latest app version from inside the app?
I want to add a "Check for update" button in apps so that when someone clicks it, it will display a toast message / progress dialog for checking the app's version. If new version is found the apps ...
68 votes
4 answers
33k views
Get android:versionName manifest element in code
I want to know how to parse the AndroidManifest.xml file in order to get the Application Version Number through code. android:versionName
58 votes
7 answers
34k views
Android SDK 28 - versionCode in PackageInfo has been deprecated
I just upgraded my app's compileSdkVersion to 28 (Pie). I'm getting a compilation warning: warning: [deprecation] versionCode in PackageInfo has been deprecated The warning is coming from this code:...
22 votes
7 answers
13k views
unresolved reference BuildConfig
When i'm try to rebuild my project i get the error below: warning: flag is not supported by this version of the compiler: -Xallow-no-source-files warning: flag is not supported by this version of the ...
17 votes
4 answers
30k views
Import BuildConfig in Android Studio using Gradle
I am new to Android Studio and I am trying to get versionCode in build.gradle. I have read this post and this post, and I tried their solution: import com.example.BuildConfig; ... ... ... // Get ...
7 votes
4 answers
11k views
Android versionCode programmatically
Is there any way to know dynamically and programmatically the versionCode of an Android application?? I don´t know... maybe something like getApplicationContext.getVersionCode(); Thank you very ...
8 votes
3 answers
6k views
How to show app version on Preferences Activity?
Id like to add an my app version and possibly build on the my SettingsActivity. Im trying to show an "About Phone" style activity on my app. But I dont know how to go about it. I am currently using ...
12 votes
2 answers
8k views
How To Get Another App's Version Name
I want to get Minecraft Pocket Edition's versionName (Example 0.13.0.b5). This is package of MCPE (Minecraft Pocket Edition) com.mojang.minecraftpe I want to get version to String. How can I do this?...