Android In Code getting app version?

I am looking for a way to get the version of an application to display it on the About screen of an Android application.

In iOS (MonoTouch.net) we just do the following:

NSBundle.MainBundle.ObjectForInfoDictionary ("CFBundleVersion").ToString (); 
+6
source share
1 answer

You can use the PackageManager.GetPackageInfo method to access all kinds of information about your application, including VersionCode and VersionName

+5
source

Source: https://habr.com/ru/post/895202/


All Articles