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:
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!
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.
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?
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
Once you have your application ready then its just a matter of annotating your code or getting it done automatically using the eclipse plugin.
Quoting from the docs the development process is as follows:
The general workflow for developing an app using Endpoints is:
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.
Hope this helps and the best of luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With