我可以使用来自Apache服务器SQLiteDB(Android中)? [英] Can I use the SQLiteDB (in Android) from Apache Server?
问题描述
我知道的SQLite数据库有没有什么不同MySQL或其他的服务器需求。我们可以从文件中直接读取。 (难道我错了吗?)..所以是有可能的Apache服务器的路径上创建一个SQLiteDB和读写呢? (我的电脑是工作作为一个在线的Apache服务器,现在,我有一个静态IP地址。我想利用这个数据库中运行相同的Android项目多台设备。)
I know that SQlite DB has not a server need unlike mySQL or the others.. We can read it directly from file. (Am I wrong?).. So is it possible to create a SQLiteDB on an apache server path and read-write it? (My computer is working as an online apache server right now, I have a static ip. I want to use this DB in multiple devices running the same android project.)
推荐答案
您可以参考这个的教程但你需要一个Web服务器了。
You can refer to this tutorialbut you do need a web-server for it.
请求机制
Android应用程序----> web服务器------>数据库(MySQL的)
Request mechanism Android App ----> webserver ------> database (mysql)
回应机制
Android应用< ---- web服务器< ------数据库(MySQL的)
Respond mechanism Android App <---- webserver <------ database (mysql)
Android应用程序将使用 JSON 或的其他来获取数据并显示它
Android App will use JSON or other to get the data and display it
这篇关于我可以使用来自Apache服务器SQLiteDB(Android中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!