English 中文(简体)
B. 坚持黑莓数据的战略
原标题:strategy for persisting data in blackberry app

我一直在研究黑莓文献,并概述了三种不同的持续应用数据机制:

  1. Persistent Store API
  2. MIDP RMS API
  3. File System API

我很想知道以下事情......

  1. What are the pros/cons of each approach
  2. Is there a maximum size of data that can be stored? I m not so concerned about individual object size as much as total size. For example, there used to be a 64K limit for the persistent store but that has been expanded to several MB in the latest versions of the software. However, I couldn t find any details on maximum sizes that can be stored.
  3. Is one of the approaches considered the "best way" to persist data?
  4. Any other persistence mechanisms (such as SQL-Lite) that anyone would suggest?
最佳回答

我们使用老式的安放器,因为它确实是持久性的,甚至在整个装置 re间。 事实上,由于你坚持的数据在删除(除非你坚持习惯目标,我想)时,不会从该装置中删除,这几乎是 TO。 储存空间仅限于现有的闪存,没有适用配额。

EDIT:删除对皇家警察部队的不准确评论

问题回答

与区域管理系统有关的问题是,数据往往(但并不总是)不会在整个应用升级过程中持续存在。 因此,如果你使用皇家邮管处,用户可能必须每当其升级为新的建筑/转化时重新配置其应用。 这可能不是令人关切的问题。

IMHO, 最好的方法是: 永久储存(如果你不考虑签署守则),否则其监管制度。 需铭记的一个问题是,尽管PS似乎更为简单,但使你的持久性数据对应用变化具有强硬性,这再次使其复杂化。 正因为如此,我把我的组合数据班与实际持续存在的班级分开。

现在,如果你想要像文件型的大规模储存,其数量比一个海滩或组合物体要多得多,那么你可能要看文件Connection AP。 这使你有更多的潜在储存空间与你合作。





相关问题
How does AlertListener work on Blackberry API 5.0?

Does the AlertListener interface works globally on all alerts on the blackberry device, or does it only work with alerts generated by your application? In other words, can I use this interface to ...

How to buffer audio in Blackberry?

I need to learn how to buffer audio stream from a remote server in Blackberry. There is a sample buffered playback app with Blackberry api but can you tell what url may I use to test the application?

Blackberry push notification implementation

How does one implement a push notification for a blackberry app? I heard that in order to do so I need to purchase a Blackberry Enterprise Server which costs me 1400 per year. Is this true? Where is ...

热门标签