我使用prepopulated数据库和数据库使用复制 这code ++工程,此链接顺利低于4.4版本的Android。
I am using prepopulated Database and copied DB using this link this code works smooth for android below 4.4 versions.
不过,我做了一个试验示范为Android 4.4+版本中,它会创建新的文件夹为app_webview,并为它创建新的数据库。 4.4+默认结构 - /data/data/{packageName}/app_webview/databases/Databases.db /数据/数据/ {}的packageName / app_webview /数据库/ file__0 / 1
But, as i made a test demo for android 4.4+ versions it creates new folder as "app_webview" and creates new database for it. 4.4+ default structure - /data/data/{packageName}/app_webview/databases/Databases.db /data/data/{packageName}/app_webview/databases/file__0/1
和以app_webview使用上面时,我复制我的database.db和my_db.sqlite文件链接 DB = window.openDatabase(MY_DB,1.0,1.0 MY_DB,200000);
and when i copied my database.db and my_db.sqlite file to "app_webview" using above link the db = window.openDatabase("my_db", "1.0", "My_db 1.0", 200000);
覆盖我的所有文件,并生成它的默认结构。 (请检查我下面的图片是如何覆盖到它的默认结构)
overrides my all files and generates its default structure. (Please check my below images how it overrides to its default structure)
结构得到调用时达到改变 - DB = window.openDatabase(MY_DB,1.0,1.0 MY_DB,200000);
Structure get changed when call reaches to - db = window.openDatabase("my_db", "1.0", "My_db 1.0", 200000);
请注意 - 我不使用SqlitePlugin
note - I am not using SqlitePlugin.
我已经使用这项目复制predefined数据库中没有任何问题。
I have used this Project to copy a predefined database without any problems.
上一篇:Android的转换的ArrayList<&HashMap的LT;字符串,字符串>> MYLIST到字符串数组字符串、数组、LT、Android
下一篇:Android模拟器错误: - 执行/系统/斌/ e2fsck的失败:没有这样的文件或目录模拟器、错误、文件、目录