Linked Questions

308 votes
0 answers
85k views

Is there a way to get the android app version from code? Is it possible to do so?
Jono's user avatar
  • 18.2k
2 votes
1 answer
3k views

How can I get the build number of my Android app and setText to a textview? For example, "Build # 91".
athulya k's user avatar
  • 145
1 vote
1 answer
556 views

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 ...
Vishera's user avatar
  • 127
237 votes
14 answers
363k views

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 ...
Marko Stojkovic's user avatar
120 votes
10 answers
134k views

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 ...
Waneya Iqbal's user avatar
  • 1,567
197 votes
8 answers
131k views

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 ...
PearsonArtPhoto's user avatar
57 votes
14 answers
84k views

Can anyone tell me how to get the application version in Android?
nileshbirhade's user avatar
62 votes
12 answers
113k views

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 ...
xDragonZ's user avatar
  • 12.7k
68 votes
4 answers
33k views

I want to know how to parse the AndroidManifest.xml file in order to get the Application Version Number through code. android:versionName
jennifer's user avatar
  • 8,259
58 votes
7 answers
34k views

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:...
Doron Yakovlev Golani's user avatar
22 votes
7 answers
13k views

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 ...
savepopulation's user avatar
17 votes
4 answers
30k views

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 ...
Taihouuuuuuuuuuu's user avatar
7 votes
4 answers
11k views

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 ...
Eloy Fernández Franco's user avatar
8 votes
3 answers
6k views

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 ...
user avatar
12 votes
2 answers
8k views

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?...
user avatar

15 30 50 per page