开发者

Android In Code get the Version of 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜