是否可以使用谷歌应用程序引擎作为后端数据库的Andr​​oid应用程序? [英] Is it possible to use the Google App Engine as a backend database for Android applications?

查看:159
本文介绍了是否可以使用谷歌应用程序引擎作为后端数据库的Andr​​oid应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写为Android使用谷歌应用程序引擎作为后端数据库客户端应用程序。我的Andr​​oid客户端需要连接到App Engine的保存信息,然后将报表稍后连接。是否有可能使用的应用程序引擎作为这样的后台?

I would like to write a client application for Android that uses the Google App Engine as a database backend. My Android client would connect to the App Engine to save information, then it would connect later for reports. Is it possible to use the App Engine as a backend like this?

推荐答案

如果你正在寻找类似的东西在App引擎在蟒蛇的远程API,那么你会失望地发现,它在Java中失踪。

If you're looking for something like the remote api that the App Engine has in python, then you'll be disappointed to find it missing in Java.

这是说,绝对没有从任何通过POST / JSON / XML /任何其他你能想到的格式击中你的应用程序和发布数据停止你的。同样的事情会得到您的报告回。

That said, absolutely nothing stops your from hitting your app and posting data either through POST / JSON / XML / any other format you can think of. The same thing goes for getting your reports back.

如果担心安全问题,OAuth协议允许您从您的Andr​​oid设备进行身份验证的应用程序引擎。

If security is a concern, the OAuth protocol allows you to authenticate to app engine from your android device.

这是题外话,但就报告而言,你可能无法找到该应用程序引擎的一个非常合适的平台报告类型的应用程序。只要确保你明白它的局限性 - 缺乏连接,1000的对象限制,无总和/平均,需要的索引,等等。这当然不是不可能,但仔细想想你打算如何来模拟你的数据。

This is an aside, but as far as reporting is concerned, you might not find the app engine a very suitable platform for reporting type apps. Just make sure you understand its limitations - the lack of joins, 1000 object limit, no sum / average, necessary indexes, etc. It's certainly not impossible, but do think carefully about how you're going to model your data.

这篇关于是否可以使用谷歌应用程序引擎作为后端数据库的Andr​​oid应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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