开发者

Android In Code get the Version of App?

开发者 https://www.devze.com 2023-03-28 08:40 出处:网络
I\'m looking for the way to get the version of the app so I can display i开发者_Go百科t in the About screen in my Android app.

I'm looking for the way to get the version of the app so I can display i开发者_Go百科t in the About screen in my Android app.

In iOS (MonoTouch.net) we'd just do this:

NSBundle.MainBundle.ObjectForInfoDictionary ("CFBundleVersion").ToString ();


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号