我(如何)能增加的localStorage中的Android的WebView配额限制 [英] (How) can I increase the quota limit of LocalStorage in Android WebView
问题描述
我需要在机器人的WebView增加localStorage的默认配额限制。目前我只能用2.5MB左右。当试图存储更多的数据,一个 quota_exceeded_err(DOM异常22)
升高。
I need to increase the default quota limit of the LocalStorage in a Android WebView. Currently I can only use around 2.5MB. When trying to store more data, a quota_exceeded_err (dom exception 22)
is raised.
任何意见或我切换到DB /文件系统?
Any ideas or do I have to switch to db/file system ?
推荐答案
我们正在谈论 HTML5 WebStorage
的 DOCS
We're talking about HTML5 WebStorage
DOCS
有很多的问题,关于同一主题,不仅没有的的Android专用的
There is plenty of question on the same theme, only not Android-specific
- HTML5 localStorage restrictions and limits
- Max size of localStorage values?
- HTML5 LocalStorage size
事实是,HTML5 WebStorage来自不同实现不同平台上受到影响。
台式机和移动平台和放大器;浏览器的组合在不同的内存(磁盘空间)配额大小分配给每个网站(域)
Fact is, that HTML5 WebStorage suffers from different implementation on different platforms.
Desktop and Mobile Platforms & Browsers combinations differs in size of memory (disk space) quota assigned to each website (domain)
不,你不能增加分配给您的HTML5应用程序/下降的空间,没有在<一个没有这样的选择href="http://developer.android.com/reference/android/webkit/WebSettings.html"><$c$c>WebSettings$c$c>由于Android的WebKit设置的Java存取类,无论是在WebKit的执行HTML5 WebStorage为一体的了。
And no, you cannot increase/decrease space allocated for your HTML5 application, there is no such option in WebSettings
as Android WebKit Settings Java accessor class, neither in WebKit implementation of HTML5 WebStorage as of now.
引文:的<一个href="http://dev.w3.org/html5/webstorage/#disk-space">http://dev.w3.org/html5/webstorage/#disk-space
推荐五兆每渊源主要是任意的限制。落实反馈意见是值得欢迎的,将用于更新这一建议在未来。
A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future.
如果您真的需要在你的HTML5应用空间大(不管它贯穿PhonGap,钛,罗得岛或其他...),我会严格推荐你使用的HTML的Web SQL数据库
If you really need a large space in your HTML5 Application (no matter if it runs through PhonGap, Titanium, Rhodes or another...), I would strictly recommend you to use HTML Web SQL Database
即使文档说:
该文件是关于W3C推荐标准赛道,但规范的制定工作已经停止。该规范陷入了僵局:所有感兴趣的实施者都使用相同的SQL后端(SQLite的),但我们需要多个独立的实现来继续沿着标准化路径
This document was on the W3C Recommendation track but specification work has stopped. The specification reached an impasse: all interested implementors have used the same SQL backend (Sqlite), but we need multiple independent implementations to proceed along a standardisation path.
在的Web SQL
现在唯一支持的Android设备(你这么做的目的在这个问题),它可以让你增加/减少空间分配为您的数据。
The Web SQL
is now only supported way on Android devices (which you do aim in this question) which allows you to increase/decrease space allocation for your data.
请注意相关的问题:
- <一个href="http://stackoverflow.com/questions/3971813/html5-indexeddb-web-sql-database-and-browser-wars">HTML5索引型数据库,网络SQL数据库和浏览器之战
这篇关于我(如何)能增加的localStorage中的Android的WebView配额限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!