从Android应用程序连接的MongoDB [英] Connecting MongoDB from Android app

查看:517
本文介绍了从Android应用程序连接的MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了一个答案,但似乎并没有找到一个很好的一个。我的网站使用蒙戈作为其数据库。我在想,如果从蒙戈网站上的Java驱动程序适用于Android作为,因为我看,这是不支持的。

I've searched for an answer but didn't seem to find a good one. My website uses Mongo as its database. I was wondering if the Java driver from the Mongo website applies to Android as well because I read that it wasn't supported.

推荐答案

的simpy把这不是一个好主意你的Andr​​oid的应用程序连接到MongoDB中的直接摆在首位。

Simpy put it's not a good Idea for your Android app to connect to MongoDB directly in the first place.

您应该思考,就好像它只是另一个Web客户端,并实现一个RESTful接口为所有要交换或更新的数据。看看这些链接作为一种可能性或以其他方式推出自己的界面。

You should be thinking as if it was just another web client and implement a RESTful interface for all the data you want to exchange or update. Look at these links as a possibility or otherwise roll your own interface.

这篇关于从Android应用程序连接的MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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