Answers for "android get app version programmatically"

1

android get app version programmatically

val versionName = requireContext().packageManager.getPackageInfo(requireContext().packageName, 0).versionName
Posted by: Guest on May-11-2021
0

get app version android

String versionName = context.getPackageManager()
    .getPackageInfo(context.getPackageName(), 0).versionName;
Posted by: Guest on April-16-2020
0

get app version android

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();
Posted by: Guest on April-16-2020

Code answers related to "android get app version programmatically"

Browse Popular Code Answers by Language