gpt4 book ai didi

blackberry - 我需要在 BlackBerry Webworks 应用程序中嵌入 > 4MB 的内容文件(适用于 BlackBerry 6/7)。我有什么选择?

转载 作者:行者123 更新时间:2023-12-02 20:49:15 27 4
gpt4 key购买 nike

我正在开发一个内容丰富的 Webworks 应用程序。为了使应用程序有用,它需要维护一个本地内容数据库(SQL 形式大约 4MB;进一步减少数据库的唯一方法是删除整个内容类别)。

我最初的想法是,我将 SQL 文件嵌入到应用程序中(就像 CSS 和 JS 一样),然后在第一次运行时加载到 SQlite 中。该策略在 Ripple 模拟器的开发过程中发挥了作用。

当我尝试在真实的测试设备上构建并运行时,悲伤发生了。编译后的 COD 有超过 127 个同级 COD,因此无法安装(花了一周时间才发现)。

我设计了一种不同方法的原型(prototype) - 首次运行时从网上下载 SQL 文件。我不喜欢第二种方法——有道理;该应用程序旨在用于世界上带宽昂贵/不稳定的区域。

有没有办法在 BB 6/7 的 BlackBerry 应用程序中嵌入大量内容,而不会遇到应用程序大小限制(同级 COD 的数量 [ 不能超过 127 ] 或应用程序的绝对大小)?

最佳答案

看起来不像: http://supportforums.blackberry.com/t5/Testing-and-Deployment/The-maximum-size-of-a-BlackBerry-smartphone-application/ta-p/1300209

具体是这样的:

The limit for the number of sibling COD files that can exist within asingle application is 127. This means that the maximum theoreticalsize limit for an application would be 16256 KB, which consists of8128 KB of application data and 8128 KB of resource data. There issome overhead to this value, which brings the actual maximum sizelimit closer to 14000 KB. The actual maximum size for an applicationwill vary slightly based on the application's contents.

It is not possible for either data type (application or resource) tomake use of unused space of another data type, meaning resource datacannot use application data space even if the application data is wellunder the limit.

关于blackberry - 我需要在 BlackBerry Webworks 应用程序中嵌入 > 4MB 的内容文件(适用于 BlackBerry 6/7)。我有什么选择?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11078052/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com