支持同一 COD 文件具有不同功能的不同 Blackberry 操作系统版本
我希望支持占已安装用户群 90% 以上的 BlackBerry 操作系统版本。目前这意味着支持操作系统版本 4.5 到 6.0。
我需要在支持触摸屏的型号上有触摸和滑动事件,并且我希望在 OS 4.5 和更高版本的操作系统上加载相同的二进制文件。
这可能吗?当我向代码中添加方法 TouchEvent
时,应用程序不再在我的 8800(操作系统版本 4.5)上加载。
来自 Windows 和 Linux PC 世界,如此受限感觉很奇怪。在这些更大的平台上,您可以创建一个可在任何操作系统版本上运行的应用程序,并优雅地删除旧平台上不支持的功能。
我想我想要动态类加载,但我不确定。
到目前为止我发现的相关内容: " 是吗可以为触摸屏和非触摸屏创建一个 ie cod 文件。” 该线程的结尾是 "不可能做你想做的事" 任何人都可以确认这一点吗?
I would like to support BlackBerry OS versions representing more than 90% of installed user base. Right now that means supporting OS versions 4.5 through 6.0.
I need to have touch-and-swipe events on models supporting with a touch screen, and I would like the same binary to load on both OS 4.5 and higher OS versions.
Is this possible? When I add a method TouchEvent
to the code, the application no longer loads on my 8800, OS version 4.5.
Coming from the Windows and Linux PC world it feels odd to be so limited. On these bigger platforms you can create an app that works on any OS version and gracefully drops features not supported on an older platform.
I think I want dynamic class loading, but I am not sure.
What I have found related so far:
"is it possible to have a single build i.e cod file for touch and non-touch screen."
The end of that thread is "It isn't possible to do what you would like" Can anyone confirm this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是否要求拥有一个 COD 文件? RIM 提供对预处理器的支持,其想法是您可以根据目标操作系统有条件地编译代码。
我使用过的应用程序使用浏览器代理嗅探来向 BlackBerry 用户提供适当的 COD 文件。 AppWorld 还允许您为一个应用程序提交多个 COD 文件,其中每个文件都是针对特定操作系统版本量身定制的。当用户下载您的应用程序时,AppWorld 会向他们提供正确的选择。
Is having one COD file a requirement? RIM provides support for a preprocessor, and the idea is that you can conditionally compile code, depending on your target OS.
The app I have experience with uses browser agent sniffing to offer the appropriate COD file to BlackBerry users. AppWorld also allows you to submit multiple COD files for one application, where each one is tailored for a specific OS version. AppWorld provides the right one to users when they download your app.