在黑莓手机开发中,要达到最广泛的智能手机最佳实践是什么? [英] What is the best practice in blackberry development for reaching the widest range of smart phones?

查看:99
本文介绍了在黑莓手机开发中,要达到最广泛的智能手机最佳实践是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人在为黑莓智能手机编写应用程序方面有经验.特别是,我想知道它们如何绕开型号/载体和操作系统的各种排列.

I am wondering if anyone out there has experience writing application for blackberry smart phones. In particular, I am wondering how they get around the myriad permutations of model number/carrier and OS.

是否有推荐的方法来编写代码,使其针对最广泛的智能手机?

Is there a recommended approach on how to write your code so that it targets the widest range of smart phones?

是否存在可用于以特定型号为目标代码的编译器开关?

Are there compiler switches that can be used to target code for particular model numbers?

推荐答案

各种设备的提示

问题是:如何编写可处理不同RIM OS,运营商和设备模型的代码?在将取决于可用/不建议使用的API的代码中,在有关处理载体特征和设备特性的工作流程中.

Tips for wide range devices

The question is: how to write code that will handle different RIM OS, carriers and device models? In code that will depends on available/deprecated API, in workflow about handling carriers features and characteristics of device.

首先,阅读 StackOverflow-目标是哪个BlackBerry OS?-简而言之,我的选择是RIM OS 4.5

StackOverflow - Which BlackBerry OS version to target for? - to be short, my choice is RIM OS 4.5

关于4.7-4.6-4.5-的提示?支持:

Tips for 4.7 - 4.6 - 4.5 - ? support:

  • 导航,使用加速度计和触摸屏,但不要忘记轨迹球和菜单
  • 边界,在4.5及更低版本中没有BorderFactory
  • 背景,4.5及更早版本中没有背景
  • 透明度,在4.5及更低版本中没有Graphics.setGlobalAlpha(alpha)
  • 多媒体,不同的操作系统和电话支持不同的格式

另请参阅
Blackberry-如何在BasicEditField上添加边框?
设置RichTextField,TextField的背景和字体颜色
Skinning Blackberry Application
支持-播放音频会使BlackBerry CDMA智能手机上的Media应用暂停

See also
Blackberry - How to add border to BasicEditField?
Setting background and font colors for RichTextField, TextField
Skinning Blackberry Application
What Is - Supported audio formats
Support - Playing audio pauses Media app on BlackBerry CDMA smartphones
How To - Record Audio on a BlackBerry smartphone

我没有有关BlackBerry运营商的统计信息.但是,让我们看看我们可以满足哪些运营商功能:

I have no statistical information about BlackBerry carriers. But lets see what are those carrier features we can meet:

  • 如果我们使用运营商网络资源,则运营商将控制所有网络配置.这意味着在前.我们可能没有UDP,最大值传输文件大小约为3 Mb,我们将必须配置APN设置
  • 同样,运营商和设备组合定义了可访问的GPS类型.对于Verizone,有一个特殊的访问GPS的签名过程.
  • if we use carrier network resources, carrier controlls all network configuration. That means on ex. we may have no UDP, max. transfer file size about 3 Mb, and we will have to config APN settings
  • also, carrier and device combination defines what GPS type is accessible. And for Verizone, there is a special signing process to access GPS.

另请参阅
什么是-为BlackBerry CDMA智能手机设计GPS应用程序的最佳做法
是什么-BlackBerry智能手机型号及其相应的GPS功能

See also
What Is - Restricted ports
What Is - Network Diagnostic Tool
How To - Determine when to route data
What Is - Different ways to make an HTTP or socket connection
How To - Specify APN information for a direct TCP connection
What Is - Best practices for designing GPS applications for BlackBerry CDMA smartphones
What Is - The BlackBerry smartphone models and their corresponding GPS capabilities
What Is - Verizon GPSSettings signing requirement

可能有助于支持一系列设备的事物:

Things which may help support set of devices:

  • 使用灵活,有弹性的UI元素,根据屏幕大小更改大小和布局
  • 使用多个大小不同的图形资源集
  • 控制字体类型和大小
  • 在使用相机之前,请先检查相机是否可用

另请参阅

See also
What Is - Compatibility mode on touch screen BlackBerry smartphones
What Is - Image formats used in BlackBerry applications

预处理器指令,但我倾向于使用 BB Ant工具,复制/删除所有平台版本的差异(代码,资源),并从构建任务中定位相应的rapc目录.

There are preprocessor directives, but I prefer to use BB Ant tools, copy/delete all platform version diff (code, resources) and target appropriate rapc directory from build task.

另请参阅
方法-使用预处理器

这篇关于在黑莓手机开发中,要达到最广泛的智能手机最佳实践是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆