使用 JAD 文件为不同操作系统版本打包 Blackberry 应用程序
我在寻找什么:
我想将我的应用程序打包为不同的黑莓操作系统版本(5,6 和 7)。这样用户就不必知道他需要什么版本,只需从网站安装应用程序即可。
我已经发现:
- 我需要查看 web 目录(atm 有三个目录,每个版本一个)
- 我需要一个 JAD 文件而不是 alx 文件,因为它是一个 web-发行版(在网络中也没有alx,所以到目前为止还好)
我认为是我的问题:
我不知道如何将这三个目录打包在网络目录中。我想我只需要一个文件夹和一个 JAD 文件来以某种方式管理正在安装的应用程序版本?
你能给我一些见解吗?
What I am looking for:
I want to package my Application for different blackberry os versions (5,6 and 7). So that the user doesn't have to know what version he needs and just installs the app from the website.
What I have already found out:
- I need to look in the web directory (there are three directories atm. one for each version)
- I need a JAD file instead of an alx file, since it's a web-distribution (also in web there is no alx so that's fine so far)
What I think is my problem:
I do not know how to package those three directories in the web directory. I think I need just one folder and a JAD file that somehow manages what version of my app is being installed?
Can you please give me some insights.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的应用程序仅使用 OS5 API
如果您使用 OS5 BlackBerry JRE(Java 运行时环境)开发应用程序,那么它将在运行 OS5、6 和 7 的所有设备上运行。BlackBerry OS 向后兼容与以前的操作系统兼容,因此您不必担心各个操作系统版本的打包问题。
至于打包应用程序,您只需将 Deliverables/Standard/5.0.0 中的 appname.jad 和 appname.cod 文件上传到您的 Web 服务器,然后引导您的用户从他们的 BB 手机访问它,他们应该会得到提示下载并安装它。
如果您的应用使用多个 API,
您将需要为您使用的每个 API 版本分发一个 cod 和 jad 文件。将它们上传到您的网络服务器,然后使用脚本来检测用户的操作系统版本。下面是执行此操作的 PHP 脚本:
您可能需要对此进行一些修改以删除
echo
语句。为多个 API 开发应用程序时,有 2 种方法:
If your app only uses the OS5 API
If you develop your app using the OS5 BlackBerry JRE (Java Runtime Environment) then it will run on all devices running OS5, 6 and 7. The BlackBerry OS is backward compatible with previous OSs, so you don't have to worry about packaging for individual OS versions.
As far as packaging the app up, you just need to upload the appname.jad and appname.cod files in deliverables/Standard/5.0.0 to your web server, then direct your users to it from their BB phone, they should be prompted to download and install it.
If your app uses multiple APIs
You will need to distribute a cod and jad file for each API version you are using. Upload these to your web server then use a script to detect the user's OS version. Here's a PHP script to do this:
You might want to hack around with this a bit to remove the
echo
statements.When developing your app for multiple APIs there are 2 approaches: