How do I get my application Version

android app version code
android app version name
android get app version from google play
android app version check and update
android get app version name programmatically
how to get play store app version in android programmatically
android get app version code from google play
how to change version code in android studio

Can anyone tell me how to get applcation version in Android?

This page has a tips on how to do it from java:

PackageManager manager = context.getPackageManager();
PackageInfo info = manager.getPackageInfo(
    context.getPackageName(), 0);
String version = info.versionName;

Also, this link has official information on how to properly set up your application versioning.

How can you tell which version of an app is on your Android phone , How do I force an Android app update when the new version is available? Navigate to your Projects Properties. (I do this by going to View > [projectname] Properties) Then make sure you have the "Application" tab selected. Click on the button "Assembly Information". In here you can set the "Assembly version:" fields and they can then be referenced in your application by calling My.Application.Info.Version.

I am using Android Studio, I realized I could use one line code to get this.

/*version name*/

/*version code*/


If you are using other android libraries, make sure you import BuildConfig from your application package. This is similar to the automatically generated R class for identifying resources.

versionCode vs versionName in Android Manifest, Users need to have specific information about the app version that is installed on their devices and the upgrade versions available for  How do I get my .NET Application's Assembly Information? Similar to Visual Basic 6's App object .NET offers the Application object which exposes properties for the CompanyName, ProductVersion and ProductName values set in the AssemblyInfo.vb or AssemblyInfo.cs file.

public int getVersion(Context context) {
        try {
            PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_META_DATA);
            return pInfo.versionCode;
        } catch (NameNotFoundException e) {
            return 0;

More info on this link

Version your app, This page has a tips on how to do it from java: PackageManager manager = context.getPackageManager(); PackageInfo info = manager. I am working on desktop application. I have create a setup. I want to get the current version of my desktop application which is 1.0.0. I have tried by using Application.ProductVersion but it provides the version of my controls. (I am using DevExpress Control 15.2.7, so it provides the current version as 15.2.7 ).

To get application information:

PackageManager manager = this.getPackageManager();
try {
   PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
   String packageName = info.packageName;
   int versionCode = info.versionCode;
   String versionName = info.versionName;
   } catch (NameNotFoundException e) {
   // TODO Auto-generated catch block

How do I get my application Version, This function returns the current version of the Application. This is read-only. To set the version number in Unity, go to Edit>Project Settings>Player and open the​  If you already have the Zoom desktop client installed, you can check for updates: Sign in to Zoom desktop client. Click your profile picture then click Check for Updates. If there is a newer version, Zoom will download and install it. There are 3 types of updates; web-only , mandatory

The easiest and best answer I found is to just import your BuildConfig

import your.package.BuildConfig;

then just

String verName = BuildConfig.VERSION_NAME;
int verCode = BuildConfig.VERSION_CODE;

Scripting API: Application.version, Is there any way to set the application version for my application and update it with scripts in Unity Editor so I can show the current version  · Click the green Start a new application or update an existing one button · Choose Go to my applications & coverage at the bottom of the screen · Under Your existing applications" select your 2017 application — not your 2018 application. 2017 will be below your 2018 application

Application version, jar , .obr , or workflow file) for the new app version. Step 1: Specify an installable artifact. If the  Learn how to manage your account through My Verizon: make a payment, add or upgrade a device, view your data usage or change your plan. Step-by-step instructions for how to manage your prepaid account through the My Verizon website, like changing your plan and features and making a payment.

Listing an app version from Java, json file, we're only importing the version number. Thanks Aaron!! —. When your Vue application is not just a web-based app or website, but it is a  Get Involved We wholeheartedly believe a daily rhythm of seeking intimacy with God has the power to transform lives. That’s why YouVersion creates biblically centered, culturally relevant experiences that encourage and challenge people to seek God throughout each day.

How to show your App Version from package.json in your Vue , On iOS I would love access to the build number and version number. For android we would want version name and version number. Is there a  After you've applied. If you are entitled to receive EI regular benefits, you should receive your first payment within 28 days of the date we receive your application and all required documents. You must complete bi-weekly reports to prove your eligibility and to receive benefits to which you may be entitled.

  • possible duplicate of How to get the build/version number of your Android application?
  • i m confuse about how to give update version to user ? Android market does it or we have to give user info about it please give me link documents about it
  • @nileshbirhade: Ask a separate stack overflow question about it. Or try googling first. That's how I got this answer
  • Someone attempted to edit the question to add exception handling, but simply swallowed the exception. It isn't clear to me in which cases the call to getPackageInfo will throw (somehow your application doesn't have a version specified?), and what is useful behavior in such a case. The edit didn't make that clear either, so I rejected it.
  • @MerlynMorgan-Graham actually, you HAVE to use a try-catch or it won't let you compile, it gives you an "unhandled exception: NameNotFoundException" at compile-time
  • @AbAppletic ah, forgot about checked exceptions (fortunately for me). Feel free to edit it then, as long as a useful fallback behavior is added, and probably the appropriate logging instead of silent swallowing of the exception (like the blog post I linked does).
  • GET_META_DATA seems to only apply for ComponentInfo, not PackageInfo:…
  • This is almost exactly what I need, except that you have to install the app to get this to work. I need something like this but without having to build the app at all. This is because I need the version number before my build happens (think to increment it)