谷歌的App Engine和Android(OAuth的,C2DM,或云消息传递) [英] Google App Engine and Android (OAuth, C2DM, or Cloud Messaging)

查看:224
本文介绍了谷歌的App Engine和Android(OAuth的,C2DM,或云消息传递)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于这款主板的用户很多,我想发展与谷歌应用程序引擎的Andr​​oid应用程序的后台服务器。我需要用户登录,与他/她的谷歌账户和图像上传到GAE服务器。这是我迄今所做的:

As many users of this board I would like to develop an Android app with Google App Engine as the backend server. I need the user to log-in with his/her Google account and upload an image to the GAE server. This is what I have done so far:

首先,我发现关于Android,GAE本网站,和 C2DM消息。我做出了努力,按照教程,学会了开发Android应用程序,以及如何创建在GAE的Java服务器,但事实证明,C2DM是pcated现在去$ P $!

First I found this website about Android, GAE, and C2DM messaging. I made an effort to follow the tutorial, learned to develop android apps and how to create the Java server in GAE, but it turns out that C2DM is now deprecated!

然后,我开始学习Java的后端是的OAuth 授权和被称为GAE实验功能的云端点,一般认为,当与Android打交道,使我的生活更轻松+谷歌应用程序引擎。

Then I started to learn about Java backends with OAuth authorization and a GAE "experimental" feature called Cloud Endpoints that is supposed to make my life easier when dealing with Android + Google App Engine.

我的问题是:?这是Android的使用GAE连接,以授权和Blob存储上传功能的最好办法使用OAuth +云终端,C2DM消息,或任何其他接口技术,我的天堂牛逼提到?

My question is: which is the best way to connect Android with GAE, with authorization and blobstore upload capabilities? Using OAuth + Cloud Endpoints, C2DM messaging, or any other interface technology that I haven't mentioned?

推荐答案

谷歌终点是要走的路,你提到的C2DM是pcated云端点去$ P $使得它非常容易地创建一个Android API与Android客户端通信。你真的没有做太多云终端,只需code你的应用程序通过以下方法的 OAuth的教程

Google Endpoints is the way to go as you mentioned C2DM is deprecated Cloud Endpoints makes it extremely easy to create an Android api to communicate with Android clients. You don't really have to do much with cloud endpoints, just code your application by following this oAuth tutorial

一旦你有你的应用程序,然后准备好你的注释code或得到它使用Eclipse插件自动完成它只是一个问题。

Once you have your application ready then its just a matter of annotating your code or getting it done automatically using the eclipse plugin.

在<一个报价href="https://developers.google.com/appengine/docs/java/endpoints/overviewEngine%20backend%20via%20the%20Endpoint."相对=nofollow>文档发展过程如下:

的一般工作流程使用端点开发一个应用程序是:

  1. 第一写下您的App Engine的后台code。
  2. 注释你的App Engine的后台code,因此类和客户端库可以从它产生。 (或者,使用谷歌Eclipse插件,它会自动为您诠释。)
  3. 生成使用endpoints.sh工具的客户端库。 (或者,使用谷歌Eclipse插件生成的客户端库。)
  4. 在写你的android客户端应用程序,通过拨打电话通过端点的App Engine的后端时,客户端库。

这里是一个工作的Java例子的在github上。

And here is a working java example on github.

另外请记住,终点是一个实验性的功能意味着它是在最前沿,所以记住这一点,当你建立你的应用程序。

Also keep in mind that Endpoints is an experimental feature meaning it is on the bleeding edge, so keep that in mind when you build your app.

希望这有助于和好运!

这篇关于谷歌的App Engine和Android(OAuth的,C2DM,或云消息传递)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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