How to connect Android app to App engine?

How do I make requests from Android to a Python API deployed on Google App Engine?

  • I am having trouble figuring out how to implement a simple request to my deployed Python App Engine API.   I have created an app engine backend via the Google plugin available in eclipse, but I am pretty sure that it creates this backend project with the implementation of Java Servlets in mind.   I see a lot of code examples that use this type of service object creation   "Tictactoe.Builder builder = new Tictactoe.Builder( AndroidHttp.newCompatibleTransport(), new GsonFactory(), null); service = builder.build();"   Is this defined in an HTTP Request Class?   What would I be looking to do to give myself the ability to make requests and pass data over Google Cloud Endpoints with and Android Client? Would I define a class that solely deals with the HTTP Transport and use that to create a service object from?

  • Answer:

    You should follow google documentation for this . you should create client libraries  first.. follow this doc https://developers.google.com/appengine/docs/python/endpoints/gen_clients and consume it on your android ,follow this doc https://developers.google.com/appengine/docs/python/endpoints/consume_android it will work fine its simple and powerful i know google docs for endpoints are little bit confusing... you can alse refer this link https://googledrive.com/host/0B19L0O2pMOKjVUJBV0tEb0psVlU/#16 Inbox me if you need any help regarding this i will avail :) Gud luck

Ahamed Muneeb at Quora Visit the source

Was this solution helpful to you?

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.