云数据库和Android应用数据库、Android

2023-09-05 10:55:03 作者:矢↗芯↘瘋

我在寻找什么,我认为是一个简单的问题,一个简单的解决方案!

I'm looking for a simple solution for what I think is an easy problem!

我有一个Android应用程序,处理了大量的摄像头,并读取NFC标签,我想有应用程序的所有实例之间共享一个共同的数据库。我创建了一个简单的图表来解释这一点:

I have an android app that deals a lot with the camera and reads NFC tags, and I want to have a common database shared among all the instances of the app. I've created a simple diagram to explain this:

到目前为止,我一直在考虑使用谷歌应用程序引擎创建一个免费的谷歌云数据存储,甚至谷歌云SQL。它似乎对付它的最好办法是使用谷歌应用程序引擎的端点与Android合作:

So far I've been considering to use Google App Engine to create a free Google Cloud Datastore or even Google Cloud SQL. And it seems the best way to deal with it is using Google App Engine Endpoints to work with Android:

https://developers.google.com/appengine/docs/java/端点/ consume_android

下面这个教程:

https://developers.google.com/eclipse/docs/endpoints- androidconnected-GAE

我只想去的最简单的解决方案。该数据库将有一些小的照片和资料,而不是什么大不了的!该业务也将是相当简单的。

I just want to go for the easiest solution. The database will have some small photos and data, but not big deal! The operations will be also quite simple.

感谢您的意见!

推荐答案

如果你想最简单的解决方案,那么你可能需要后端的一个作为一个服务选项。

If you want the simplest solution then you probably want one of the Backend as a Service options.

在特定的,谷歌现在已经进入这一领域与他们的移动后台启动: https://developers.google.com/cloud/samples/mbs/

In particular, Google has now entered this field with their 'mobile backend starter': https://developers.google.com/cloud/samples/mbs/

有一件事情是非常好的关于使用谷歌的选项来支持Android应用程序是,它是建立在GAE / J,以便它可以很容易地使用Java扩展。

One thing that is very nice about using Google's option to back an Android app is that it is built on GAE/J so it can easily be extended using Java.