从Android应用程序连接的MongoDB应用程序、Android、MongoDB

2023-09-07 01:26:06 作者:别穿短裙在我这卖弄▲

我搜索了一个答案,但似乎并没有找到一个很好的一个。我的网站使用蒙戈作为其数据库。我在想,如果从蒙戈网站上的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.