BlackBerry 使用模拟器

发布于 2024-08-26 16:06:22 字数 218 浏览 8 评论 0原文

您好,

在黑莓主页上您可以为每种不同的型号下载不同的模拟器。那里有很多模拟器...

我的问题是,您如何开发 BlackBerry 应用程序:

  1. 您使用模拟器吗?您可以依赖它们吗?如果应用程序在模拟器上运行,那么它在手机上是否可以一比一运行?
  2. 由于屏幕尺寸不同,您是否会为每种型号开发不同的 UI?

非常感谢您的重播?

Hallo,

on the BlackBerry homepage you can download different simulators for every different model. There are a lot fo simulators there...

My question is, how do you develop BlackBerry applications:

  1. do you use the simulators - can you relay on them. If an application works on the simulator, does it works 1:1 on the phone?
  2. Do you develop for every model a different UI, as the screensize is different?

Thanks you very much for your replay?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

空城仅有旧梦在 2024-09-02 16:06:22
  1. 在大多数情况下,应用程序的行为方式相同。然而,还有诸如网络、绘图性能、io性能、应用程序权限等功能,这些功能应该在真实设备上进行测试。

  2. 您可以使用自定义布局(只需覆盖屏幕或管理器上的子布局)并为所有型号提交一个应用程序版本。但如果有皮肤控件、背景等,最好根据模型的屏幕大小将资源存储在单独的文件夹中,并在使用 ant 自动构建时使用它们(bb ant 工具)

另请参阅
最佳实践是什么黑莓的开发是为了覆盖最广泛的智能手机?
Blackberry 用户界面设计 - 可自定义 UI?

  1. In most cases application behaves same way. However, there are functionality like networking, drawing performance, io performance, app permissions, which should be tested on the real device.

  2. You can use custom layout (just override sublayout on screen or manager) and commit with one app version for all models. But if there are skinned controls, background etc its better to store resources in separate folders according to screen size of model, and use them during automate build with ant (bb ant tools)

See also
What is the best practise in blackberry development for reaching the widest range of smart phones?
Blackberry User Interface Design - Customizable UI?

假扮的天使 2024-09-02 16:06:22

模拟器和真实设备之间存在许多重要差异,其中一些是:

  • 对某些 API 执行代码签名限制(可以在模拟器上启用,但默认情况下关闭)
  • 打开网络连接的细微差别(更复杂 )如果你希望它始终在真实设备上工作)
  • 存储 I/O 性能(即从 SD 卡加载/保存数据)
  • 浮点数学性能(真实设备没有 FPU,因此速度较慢)
  • 一般性能(模拟器)在大多数情况下往往会更快)

因此对于 99.9% 的开发来说,模拟器就可以了。但您仍然应该在真实设备上进行测试。另外,请制作可根据屏幕尺寸动态调整自身大小的可扩展 UI。每当我看到特定于设备尺寸的 UI 时,我都会想奇怪开发人员。 (因为他们的应用程序要么有无数的构建,所以它用大量的固定大小的图形让它一直膨胀)

There are a number of important differences between the simulators and the real devices, some of them are:

  • Enforcement of code signing restrictions on some APIs (can be enabled on the simulator, but off by default)
  • Nuances of opening network connections (its more complicated if you want it to always work on a real device)
  • Performance of storage I/O (i.e. loading/saving data from an SD card)
  • Performance of floating-point math (real device has no FPU, so its slower)
  • General performance (simulator tends to be faster, for the most part)

So for 99.9% of your development, the simulator is fine. But you should still test on a real device. Also, please make scalable UIs that dynamically size themselves based on the screen size. Every time I see a device-size-specific UI, it makes me want to strange the developer. (because they either have a zillion builds of their app, it bloat it all the way out with tons of fixed-size graphics)

穿透光 2024-09-02 16:06:22

1.模拟器仅用于此目的。
2.不,我们不需要为不同的屏幕尺寸创建不同的 UI,

请在您的主页上使用它

<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

1.simulator are meant for this purpose only..
2.No we dnt need to create different UI for different screen size

use this on your master page

<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文