How to connect Android app to App engine?

Android and Google App Engine Connectivity? (Java Servlets, Python, etc.)

  • What am I missing? What I am really having trouble with is understanding how to integrate a server, in this case Google App Engine, with my app. I see there are many different "web applications" that can be deployed on GAE, but how can I access them from Android? The only examples I have found are primarily focused on Java Servlets by which calls are made from an Android Client. I have not been able to find similar examples for Python Scripting and in result am confused as to how I can implement them in my app. Does anyone have the "glue" that would connect the pieces? or point me in the right direction at least. The app involves sharing user created listings (comprised of pictures/text etc.) between friends. The users would be able to connect via Facebook or Google+.

  • Answer:

    The best way to integrate your Android application with a web service you write on Google App Engine is to use Google Cloud Endpoints (GCE). GCE works with both Python and Java applications, and it does a ton of handy stuff for you such as auto-generate client libraries for your Android/iOS/web application to communicate with your GAE app, deal with authentication, standardized request/response structure, etc. You'll probably want to just do a Google Search for "Google Cloud Endpoints", but here are a few stand-out resources: https://developers.google.com/appengine/docs/java/endpoints/ (for Java Apps) https://developers.google.com/appengine/docs/python/endpoints/ (for Python Apps) https://cloud.google.com/resources/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial

Jeremy Weinstein at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.