0

如何指示允许我的应用程序运行的最低编译版本?说 OS 5.0 作为最低要求。

我将 Java 与 Eclipse 工具一起使用。

4

3 回答 3

1

正如 Remy 所说,您的应用程序支持的最低操作系统版本取决于您用于开发的 Blackberry SDK 版本。

如果您计划通过Blackberry App World提供您的应用程序,该平台允许您选择允许下载您的产品的操作系统版本、运营商甚至特定型号。

于 2012-04-18T05:07:56.640 回答
0

最低操作系统版本由您编译时使用的 BlackBerry JRE 版本决定。如果您安装了多个 JRE 版本,则可以在项目的属性中选择特定版本,在本例中为 5.0 JRE。

于 2012-04-18T04:44:47.507 回答
0

Actually, the minimum OS version you can install your app is determined by the tag fileset in your .alx file. Example:

<fileset Java="1.54" _blackberryVersion="[4.5.0)">

The important info here is the Java attribute, the _blackberryVersion is only generated by newer plugin versions.

So you can compile a .cod file for let's say 5.0, and install it on 4.5 tweaking that element in the alx file. The alx is only used for BES and cable installs. You can also use JavaLoader and install the cod without caring about OS versions (no alx or jad file needed).

WARNING: The fact that you can install a "wrong" cod on a BlackBerry OS version it is not intended for doesn't mean you can run it without exceptions. If your app uses an API not present in your OS, it will crash.

Of course, the BB plugin generates the correct alx for the selected target OS, but you can bypass it by manually editing the alx if you wish. For OTA installs, the jad file doesn't contain any minimum version info AFAIK, but if it did, you could edit it as well.

于 2012-04-18T07:59:29.597 回答