Get the Android app version programmatically
Published in
Sep 4, 2022
In Android API 33, getPackageInfo(String, Int): PackageInfo!
was deprecated.
To get the app version programmatically, we can use the following method.
Please comment with your valuable feedback. It would help me to improvise.
Kindly 馃憦馃憦馃憦 if this was useful.
Please follow if you would like to see more content related to Android Jetpack Compose.
LinkedIn: https://www.linkedin.com/in/abhimanyu-n/
References
- Official Android Docs
- This StackOverflow post: https://stackoverflow.com/q/73388061/9636037