app version access on android programmatically code example
Example: android get app version programmatically
val versionName = requireContext().packageManager.getPackageInfo(requireContext().packageName, 0).versionName
val versionName = requireContext().packageManager.getPackageInfo(requireContext().packageName, 0).versionName