我需要嵌入一个>在黑莓WebWorks的应用程序(fror黑莓6/7)4MB内容文件。我有哪些选择? [英] I need to embed a > 4MB Content File in a BlackBerry Webworks Application ( fror BlackBerry 6/7 ). What are my options?

查看:100
本文介绍了我需要嵌入一个>在黑莓WebWorks的应用程序(fror黑莓6/7)4MB内容文件。我有哪些选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发内容重WebWorks的应用的过程。为了使应用程序是有用的,它需要维护本地内容数据库(约4MB在SQL形式;只有这样,才能减少进一步的撕裂出来的内容整个类别)

I am in the process of developing a content-heavy Webworks app. In order for the app to be useful, it needs to maintain a local content database ( approx. 4MB in SQL form; the only way to reduce it further is to rip out entire categories of content ).

我原来的想法是,我会在嵌入应用(就像CSS和JS)的SQL文件,然后加载到SQLite的第一次运行。这一策略获得了发展的脉动模拟器。

My original thinking was that I would embed the SQL file in the app ( just like the CSS and JS ), then load into SQlite on first run. The strategy worked in development on the Ripple emulator.

当我试图建立和一个真正的测试设备上运行,悲痛所致。编译COD有> 127同级的差值相,所以它不会安装(花了一个星期的时间来找我)。

When I attempted to build and run on a real test device, grief resulted. The compiled COD had > 127 sibling CODs, so it wouldn't install ( took a week to find that out ).

我已经试制出不同的方法 - 下载从第一次运行在Web SQL文件。我不喜欢这种第二种方法 - 用理性;本申请旨在用于在具有昂贵/参差不齐带宽世界的一个区域。

I have prototyped a different approach - downloading the SQL file from the web on first run. I do not like this second approach - with reason; this application is intended for use in a zone of the world that has expensive / spotty bandwidth.

有没有一种方法嵌入到显著金额为BB 6/7黑莓应用程序的内容,而不会在应用程序的大小限制(或兄弟姐妹的差值相数[不能超过127]或应用程序的绝对大小)?

Is there a way to embed significant amounts of content in a BlackBerry application for BB 6/7 without running into application size limits ( either number of Sibling CODs [ cannot exceed 127 ] or absolute size of the application)?

推荐答案

看起来不像它:
<一href=\"http://supportforums.blackberry.com/t5/Testing-and-Deployment/The-maximum-size-of-a-BlackBerry-smartphone-application/ta-p/1300209\" rel=\"nofollow\">http://supportforums.blackberry.com/t5/Testing-and-Deployment/The-maximum-size-of-a-BlackBerry-smartphone-application/ta-p/1300209

具体如下:

有能够内的存在同级的COD的文件的数量的限制
  单个应用程序是127。这意味着,理论上的最大
  一个应用程序的大小限制是16256 KB,它由
  8128 KB应用程序数据和8128 KB的资源数据。有
  一些开销此值,这会使实际的最大尺寸
  限制接近14000 KB。一个应用程序的实际最大尺寸
  会稍微有所不同基于应用程序的内容。

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

这是不可能为任一数据类型(应用程序或资源),以
  利用另一种数据类型的未使用空间,这意味着资源数据
  即使在应用程序数据以及不能使用的应用程序的数据空间
  下限值。

It is not possible for either data type (application or resource) to make use of unused space of another data type, meaning resource data cannot use application data space even if the application data is well under the limit.

这篇关于我需要嵌入一个&GT;在黑莓WebWorks的应用程序(fror黑莓6/7)4MB内容文件。我有哪些选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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