Android In Code get the Version of App?

前端 未结 1 1433
無奈伤痛
無奈伤痛 2021-01-18 06:54

I\'m looking for the way to get the version of the app so I can display it in the About screen in my Android app.

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

相关标签:
1条回答
  • 2021-01-18 07:34

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

    0 讨论(0)
提交回复
热议问题