Languages

Menu
Sites
Language
Database file for wearable web application

Hi everyone,

I am developing a wearable web input method application, and I want to provide a candidate list containing the words predicted based on what user typed. Therefore I need a database. However, I found there is only indexedDB available, and I did not found any API that I can integrate my Database file into my application, I need to create the indexedDB from zero after I launch my application. Is there any way to have a database available right after the application is installed?

Responses

3 Replies
Nafisul Islam Kiron

Indexed database guide:

https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/storage/indexed-database

Indexed database API:

https://www.w3.org/TR/2013/WD-IndexedDB-20130516/

 

Another option is to use web storage, it stores key-value pairs. Very easy to use.

https://developer.tizen.org/development/tutorials/web-application/w3chtml5supplementary-features/storage/web-storage

https://www.w3.org/TR/2011/WD-webstorage-20110901/

http://stackoverflow.com/questions/2326943/when-do-items-in-html5-local-storage-expire

 

Finally, you can use filesystem to write your own "json" or "xml" files and read/write/update your data manually.

https://www.tizen.org/tv/web_device_api/filesystem

 

Best regards.

Heng Liu

Hi,

Thank you for your answer, I have already read them all. So I think you mean I cannot have an existed database file ready for use right after the app is installed, and no matter which way I choose I need to create data using JavaScript first, is that correct?

Nafisul Islam Kiron

Hi, from my findings the answer is yes.