English 中文(简体)
机器人 - HTML5 - SQLite
原标题:Android - HTML5 - SQLite

我想建立一个使用纯html, javascript和一个数据库(sqlit maybe?) 运行和运行的应用程序。 我之前还没有做和开发机器人。 我的问题是,是否有可能开发一个仅使用html, javascript和一个数据库的数据库应用程序? 除了Sqlip, 还有什么更好的数据库支持吗?

Thanking you Imran

最佳回答

有两种可能的办法:

  1. Use a webview to embed your html5 application and add a Javascript interface with a database access layer: http://developer.android.com/guide/webapps/webview.html

  2. Use the Phonegap framework to access the SQLite database from Javascript: http://docs.phonegap.com/en/1.7.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

问题回答

您想要的无法直接在 Android 上实现: HTML & amp; JavaScript 没有访问 SQLite 数据库的接口 。

唯一可以做到这一点的方法是使用像 PhoneGap 这样的 App 框架来生成一个来自 HTML & amp; JavaScript 代码的 App 。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签