android get app version programmatically

val versionName = requireContext().packageManager.getPackageInfo(requireContext().packageName, 0).versionName

3.89
9
Awgiedawgie 440220 points

                                    String versionName = context.getPackageManager()
    .getPackageInfo(context.getPackageName(), 0).versionName;

3.89 (9 Votes)
0
3.5
2
Awgiedawgie 440220 points

                                    PackageManager manager = this.getPackageManager();
PackageInfo info = manager.getPackageInfo(this.getPackageName(), PackageManager.GET_ACTIVITIES);
Toast.makeText(this,
     "PackageName = " + info.packageName + "\nVersionCode = "
       + info.versionCode + "\nVersionName = "
       + info.versionName + "\nPermissions = " + info.permissions, Toast.LENGTH_SHORT).show();

3.5 (2 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how ot get application version in android android get application version android get app store version android get app version number programmatically android get apk version programmatically how to get app version in android programmatically android get app version name programmatically android get software version programmatically get android app version code how to get application version in android programmatically android get app version in code android studio show app version android app check for latest app version get version of app android android get app version name android get app version code android get android version programmatically get app versioncode android android:get Android version programmatically get app version name in android how to get current application version code in android app version access on android programmatically android get current version of app get app version number android set android app version name android app version name check app version android studio android get app version programmatically android app versioning android app versions android get version of app from store android app version check android studio get application version get current version of app android check app version android app versioning android android show app version how to get app version in android check app version on android current app version check in android android app version how to get app version android studio android versioning your app how to programatically get versionname from build.gradle android android studio read version name from gradle get app version android get current version android android get app version code programmatically get version of the app extract appversion from androidmanifest get version name in android kotlin android get current app version kotlin get current app version android studio get app version get android app version name get version code of my app get version code of current app get version name of android app get android app version program android build config versionname getcurrent version app android how to get app version name in android android get version name programmatically How get VERSION_CODE in andoir programming android studio get build number get version name andoid get version android android how to get version code programmatically android get version name from gradle how to read version in android programmatically android get app version android ger version name find an app version code get app version android programmatically android get version number programmatically get app version android studio kotlin get app version how to get version of app android code kotlin how to get version of app android code how to get app version android java how to get current version of app in android programmatically android get version code get package version android how to get product version android show application version in android user interface how to get current version of app in android android get version code programmatically get app version programmatically android get information about current build in android android get versioncode programmatically android fetch versioncode android build version code and name android get build number android check app version programmatically how get current app version android android get my app version programmatically
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source