Get the Android app version programmatically

Abhimanyu
Make Apps Simple
Published in
Sep 4, 2022
Source: Android Docs

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

--

--