代号一个应用程序版本号

代号一个应用程序版本号

本文介绍了代号一个应用程序版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在运行时从代码中获取应用程序版本

I'm trying to get application version from the code at runtime

如何获取 codename1.version codenameone_settings.properties 编程

推荐答案

使用 Display.getInstance()。getProperty( AppVersion, 1.0),它将返回应用程序版本

Use Display.getInstance().getProperty("AppVersion", "1.0"), it will return the app version

这篇关于代号一个应用程序版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 08:58