为每个设备单独构建
有很多可用的黑莓设备。有些设备是支持触摸功能的手机。
由于 BlackBerry 手机型号各不相同,我是否需要为每台设备单独构建?
如果没有,为不同的 BlackBerry 设备开发 BlackBerry 应用程序的程序是什么?
There are plenty of Blackberry devices available. Some devices are touch enabled phones.
Since the BlackBerry phone models are different from each other, do I need to have a separate build for each device?
If not, what is the procedure for developing a BlackBerry app for different BlackBerry devices?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不想使用更新操作系统的更新功能,那么也没关系。您可以为每个设备创建单个代码。
但是,如果您想使用触摸事件等最新功能,那么您必须为触摸和非触摸实现代码,为每个文件创建 .cod 文件,并在 application.alx 文件中为每个文件定义路径。
如下所示。
If you don't want to use updated feature of the updated OS,then its fine.You can create single code for each device.
But if you want to use the latest feature like touch event etc.then you have to implement code for both-touch and non-touch ,create .cod file for each and define path for each in application.alx file.
As given below.
由于 BlackBerry 设备之间的差异,您必须考虑几个因素。以下是需要考虑的几个因素;
- 操作系统(例如4.6、5.0、6.0):您可能想要利用较新操作系统中的某些功能,而这些功能在较旧操作系统上不可用。您可以将代码包装在预处理器指令中,或者在您的代码库在这方面出现偏差时使用单独的文件。 BB OS 4.7引入了触摸屏功能。
- 屏幕分辨率:您可能需要根据可用的屏幕空间修改布局、使用的图像(例如背景图形或其他 UI 元素)。一些流行的分辨率为 320x240、480x360,尚未发布的设备预计为 800x480。
典型的开发过程涉及为每个设备配置(分辨率和操作系统组合,因为多个设备共享相同的配置)设置单独的版本。您可以使用 Ant 和 BB-Ant-Tools 来实现此目的。
如果您刚刚开始 BB 开发,我建议您将精力投入到 BB 5.0+(如果不是最低 6.0)。对于大多数人来说,这是一个很好的建议(我已经尝试过并且是正确的)。
There are several factors that you have to consider due to the differences between BlackBerry devices. Here are a few factors to consider;
-Operating System (e.g. 4.6, 5.0, 6.0): There may be features in newer OSs that you might want to take advantage of that are not available on an older OS. You can wrap code in pre-processor directives or have separate files wherever your code base deviates in this respect. BB OS 4.7 introduced touch screen capabilities.
-Screen Resolution: You might need to modify your layout, images you use such as background graphics or other UI elements based on the available screen real estate. Some popular resolutions are 320x240, 480x360, devices yet to release are expected to be 800x480.
The typical development procedure involves you setting up a separate build for each device configuration (resolution and os combination, as several devices share the same configuration). You can use Ant and BB-Ant-Tools for that.
If you're just starting BB development, I recommend that you invest your efforts in BB 5.0+, if not 6.0 as a minimum. For most people, this is good advice (tried and true on my part).