Start integrating Google+ into your Android app

Before you can start integrating Google+ features in your own app, you must create a Google Developers Console project and initialize the GoogleApiClient within your app. The steps on this page do just that. The next stepsthen describe how to integrate Google+ features into your app.

You can try out the quick-start sample app if you would like to quickly experiment with features of the platform.

Step 1: Add Google Sign-In

Before you begin using Google+ in your Android app, follow all of the steps to Start Integrating Google Sign-In into your Android App.

Step 2: Enable the Google+ API

If you followed the steps above to add Google Sign-In to your app, you have already created a project in Google Developers Console. Now you need to enable the Google+ API for that project in order to begin accessing Google+ features.

  1. Go to the Google Developers Console .
  2. Navigate to the project you previously created.
  3. In the left sidebar, select APIs & auth (the APIs sub-item is automatically selected).
    1. Find the Google+ API and set its status to ON—notice that this action moves Google+ API to the top of the list; you can scroll up to see it.

Next steps

Now that you have added GoogleApiClient to your activity, you can integrate your choice of Google+ features to your app:

Frequently asked questions

How do I continue to support older platforms, such as Eclair (v2.0)?
Check system version at runtime, and only call GoogleApiClient if the version is Android 2.3 (Gingerbread) or higher.

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
    // Make the call to GoogleApiClient
}
How do I debug my Google+ integration?
By enabling logging, you can diagnose network issues when working with the Google APIs.

To enable logging, run the following command:

adb shell setprop log.tag.GooglePlusPlatform VERBOSE

To disable logging, run the following command:

adb shell setprop log.tag.GooglePlusPlatform ""

Leave a Reply

Your email address will not be published. Required fields are marked *