The Eclipse ADT plugin required by these instructions is no longer supported per our June 2015 announcement. Android Studio is now the official IDE for Android, so you should migrate your projects to Android Studio as soon as possible. For similar integrations with Cloud Endpoints and App Engine, you can instead use Cloud Tools for Android Studio.
In order to add Endpoints Support to Android clients, you need the following prerequisites:
- The latest Google Plugin for Eclipse (GPE)
- The latest Android Development Tools (This plugin is also available via the GPE install)
- The latest Google App Engine SDK for Java
There are two ways to create a project with Endpoint support for an Android app:
- If you are creating a new Android app and want to create a backend for it at the same time, you can use the method described in Creating an App Engine Connected Android Project.
- If you have an existing Android app and wish to add an Endpoints backend to it, or if you don't want to use the App Engine Connected Android wizard, you can use the method described in Creating an Endpoints Backend from an Android Project.
Note: GCM is automatically generated when you
go through either of the Android project creation processes described above.
However, you still need to complete some steps (get
API_KEY) in order to make CGM fully operational for your app.
Adding Endpoints to your Android App is covered in the following topics: