You can use Google App Engine backend templates hosted in this repository to add a backend to your existing (or new) Android application from Android Studio IDE.
All of these backends are designed to be hosted on App Engine (which provides autoscaling and high-availability out-of-the-box), and can be used under App Engine's free resource quotas.
This repository contains three backend template types, which can be added into your Android app by navigating to "File → New Module..." menu, or by right-clicking on your project and choosing "New → Module".
In the "New Module" wizard that appears, choose one out of the following template types:
- App Engine Java Servlet Module [HelloWorld]: a simple App Engine Java backend servlet with minimal boilerplate code,
- App Engine Java Endpoints Module [HelloEndpoints]: a backend which leverages Google Cloud Endpoints for automated object marshalling/unmarshalling, generation of strongly-typed Java client libraries and so on,
- App Engine Backend with Google Cloud Messaging [GcmEndpoints]: a mobile backend with Google Cloud Endpoints and Google Cloud Messaging integration, which supports more advanced features like push notifications.
For detailed instructions on how to use each of these templates to add a backend to your Android app see the individual template directories (HelloWorld, HelloEndpoints or GcmEndpoints).
App Engine requires Java 7 SDK. You can check which SDK your project is using by navigating to "File → Project Structure...".
These templates use FreeMarker (but it is not required if you are adding these templates via Android Studio).
If you have any problems adding these backends to your Android applications, contact us on Android Developers G+ community or write us a question on StackOverflow using google-app-engine or google-cloud-endpoints tags.
Click on the following links to get more information about: