Katedral Pillon
Katedral Pillon

Reputation: 14864

Testing android app on python app-engine endpoint

I have my python app-engine endpoint running on localhost. How do I point my android app to it for testing? Right now, the android app is trying to access the https:myapp.appspot.com/_ah/api address on appspot. Must I first deploy the python endpoints server to appspot before the android app can see it? Could I just deploy the server to localhost and test android from there?

Upvotes: 0

Views: 441

Answers (1)

plspl
plspl

Reputation: 728

Edit: Sorry, I probably misunderstood your question. I think you should be able to test it locally as per this link - https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae. Step 5 & 6 refer to running back-end locally. Have you seen this page?


Yes, you have to deploy it to GAE. You can test your backend on GAE through API explorer, by https://mapp.appspot.com/_ah/api/explorer to make sure its working fine. Then follow instructions from https://developers.google.com/appengine/docs/python/endpoints/consume_android to generate android client.

There are some examples here as well,

APP Engine backend https://github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-python

Android app using app engine backend https://github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-android

Upvotes: 1

Related Questions