I need to save an id through the Webview and then access it through my Android service.
I would like to know if I can use SQLite in my Webview (via cordova interface) and also from my Android service, while accessing the same database.
I need to save an id through the Webview and then access it through my Android service.
I would like to know if I can use SQLite in my Webview (via cordova interface) and also from my Android service, while accessing the same database.
Cordova 使用 Web SQL 进行存储:http ://docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html
但是,有一个 Cordova 插件可以使用 SQLite:https ://github.com/pgsqlite/PG-SQLitePlugin-Android
要了解如何在 Worklight 中使用 Cordova 插件,请参阅这些 IBM Worklight 入门培训模块
然后,您应该能够从 Android 服务访问数据库:How to use SQLite from Services in Android?
我猜Android服务只会在应用程序未运行时运行?我不知道如果两者同时运行会不会有任何冲突。