且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

机器人的WebView setDatabasePath德precated

更新时间:2023-11-19 11:20:58

API级别19指的是Android 4.4奇巧,在该浏览器引擎从Android的WebKit的切换到铬的WebKit,几乎所有包裹同行原来的WebView的API铬的WebKit。

API level 19 means Android 4.4 KitKat, in which the browser engine is switched from Android webkit to chromium webkit, with almost all the original WebView APIs wrapped to the counterparts of chromium webkit.

这意味着,大多数的WebView API实现都来自Android 4.3及以前不同,incuding数据库存储API。这也意味着由于Android 4.4开发人员不能(或没有)分配一个替代数据库路径;这一切都是Android的默认处理。

That means most of the implementations of WebView APIs are different from Android 4.3 and before, incuding the database storage API. That also means since Android 4.4 developers cannot (or don't have to) assign an alternative db path; all this is handled by Android by default.

的实施管理意味着现在的数据库存储路径是由铬的WebKit引擎处理在默认情况下,而Android 4.4之前,在 Android的处理。 WebKit的在框架层,需要进行设置。

managed by the implementation now means the database storage path is handled by chromium webkit engine by default, while before Android 4.4 it's handled in android.webkit in framework layer which needs to be set.