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 .
After you create your project using one of the above methods, you need to Add and Annotate Entities . When you are finished with that, you need to Test and Deploy your backend.
Optionally, you can add support for Google Cloud Messaging to your app, and also authentication .
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
PROJECT_NUMBER
,
API_KEY
) in order to make CGM fully operational for your app.
Topic Index
Adding Endpoints to your Android App is covered in the following topics: