database support in Samsung galaxy gear 2

落爺英雄遲暮 提交于 2019-12-13 04:24:43

问题


I wanted to know which database does the Samsung Galaxy Gear 2 support. Gear 2 being based on Tizen I tried using the Web SQL database. However on the emulator it shows that the Web SQL is not supported.

Can anyone tell me which database is supported for the Gear 2 ?


回答1:


There are 3 ways get this done .. HTML5 Webstorage, IndexedDB and good old Files . More importantly, the Tizen wearable sdk comes with sample code

HTML5 WebStorage Example.

Since your apps are written in HTLM5 and compiles using a webbrowser-like runtime engine, you can use the HTML5 Web storage paradigm for data storage and retrieval.

localStorage.setItem("lastname", "Smith");
// Retrieve
document.getElementById("result").innerHTML = localStorage.getItem("lastname");

You can read more about it here .. http://denvycom.com/blog/how-to-store-data-in-your-gear-2-apps/




回答2:


The best way to persist data would be on your phone. All communication 100% goes through Bluetooth to your phone via SAP. You can send data to your phone and have your integrated android app handle the db.



来源:https://stackoverflow.com/questions/22791966/database-support-in-samsung-galaxy-gear-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!