简体   繁体   English

如何将Android App与App Engine上的数据存储连接

[英]How to connect android app with data store on app-engine

I am working with some friends on an android application and we want to use data store on google app engine. 我正在与一些朋友一起在android应用程序上工作,我们想在google app引擎上使用数据存储。 Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself. 谁能帮我找到一个有关如何在android应用程序和数据存储之间建立连接的教程,但我自己找不到一个很好的教程。

Thanks. 谢谢。

I suggest you look at a few, quite recent Google services: 我建议您看看一些最近的Google服务:

  • Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication. 端点将帮助您在服务器代码和客户端之间创建接口,包括生成客户端库和执行OATH2身份验证。

  • Volley is an Android library that makes it easy to perform the requests to the server. Volley是一个Android库,可以轻松执行对服务器的请求。 (There are a number of 3rd party alternatives to Volley that are also good.) (Volley有许多第三方的替代方案也不错。)

  • Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later. Mobile Starter Kit是一种入门的简单方法,最初是从客户端执行所有操作,但以后可以自定义服务器。

Take a look at this Google blog post from a few days ago: 看看几天前的这篇Google博客文章:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html

Those are good starting points, but don't assume you should use the recommended Google services. 这些都是很好的起点,但是不要以为您应该使用推荐的Google服务。 Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. 例如,端点将使您陷入GAE的困境,这听起来并不像您需要它提供的多平台支持。 You could just create a REST/JSON servlet using one of many libraries. 您可以使用多个库之一来创建REST / JSON servlet。

I reccomand DropBox API. 我推荐DropBox API。 It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial.. 这不是您要的,但是我想您没有开始使用Google API,因为您正在寻找教程。

DropBox API has a lot of info and tutorials and it's kinda easy to handle.. DropBox API有很多信息和教程,操作起来也很容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM