三星galaxy gear 2 中的数据库支持 [英] database support in Samsung galaxy gear 2

查看:64
本文介绍了三星galaxy gear 2 中的数据库支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道三星 Galaxy Gear 2 支持哪个数据库.Gear 2 基于 Tizen 我尝试使用 Web SQL 数据库.但是在模拟器上它显示 Web SQL 不受支持.

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.

谁能告诉我 Gear 2 支持哪个数据库?

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

推荐答案

有 3 种方法可以完成此任务..HTML5 Webstorage、IndexedDB 和旧文件.更重要的是,Tizen可穿戴sdk自带示例代码

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 示例.

HTML5 WebStorage Example.

由于您的应用是用 HTLM5 编写的,并使用类似网络浏览器的运行时引擎进行编译,因此您可以使用 HTML5 网络存储范例进行数据存储和检索.

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");

你可以在这里阅读更多关于它的信息..http://denvycom.com/blog/how-to-store-data-in-your-gear-2-apps/

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

这篇关于三星galaxy gear 2 中的数据库支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆