Android Get App Version Programmatically

[Solved] Android Get App Version Programmatically | Swift - Code Explorer | yomemimo.com
Question : get app version android

Answered by : stockholm

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

Source : https://stackoverflow.com/questions/4616095/how-to-get-the-build-version-number-of-your-android-application | Last Update : Thu, 23 Apr 20

Question : android get app version programmatically

Answered by : friendly-finch-ilzquf35h894

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

Source : | Last Update : Tue, 18 May 21

Question : get app version android

Answered by : stockholm

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();

Source : https://stackoverflow.com/questions/4616095/how-to-get-the-build-version-number-of-your-android-application | Last Update : Thu, 23 Apr 20

Question : android get app version name programmatically

Answered by : colorful-caribou-t314ksuv85un

import com.yourpackage.BuildConfig;
...
int versionCode = BuildConfig.VERSION_CODE;
String versionName = BuildConfig.VERSION_NAME;

Source : https://stackoverflow.com/questions/4616095/how-can-you-get-the-build-version-number-of-your-android-application | Last Update : Mon, 05 Sep 22

Answers related to android get app version programmatically

Code Explorer Popular Question For Swift