2.3手机操作数据库异常情况备忘:
android.database.sqlite.SQLiteDiskIOException: disk I/O error: BEGIN EXCLUSIVE; at android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method) at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1763) at android.database.sqlite.SQLiteDatabase.beginTransactionWithListener(SQLiteDatabase.java:527) at android.database.sqlite.SQLiteDatabase.beginTransaction(SQLiteDatabase.java:481) at android.webkit.WebViewDatabase.startCacheTransaction(WebViewDatabase.java:591) at android.webkit.CacheManager.startTransaction(CacheManager.java:270) at android.webkit.WebViewWorker.handleMessage(WebViewWorker.java:200) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.os.HandlerThread.run(HandlerThread.java:60)
该问题主要出现在多webview加载页面;2.3机型
在高于2.3版本对多个Webview执行的存取操作,在底层都会同步执行,不存在异步冲突问题,而在2.3版本上情况较为特殊。时间和成本原因未做深入探究,留此备忘~!