Legacy Google+ APIs have been shut down as of March 7, 2019. Changes to the shutdown plan have been made recently which may mitigate its effect on some developers. Learn more.

Google+ integrations for web and mobile apps have also stopped functioning as of March 7, 2019. Learn more.

Recommend content with the +1 button

+1 annotations from your users can help their social connections find your site or app and can influence search positioning. Learn more about how Google uses social connections in search.

Add the native +1 button (PlusOneButton) to your app and configure the button to recommend rich content from your app. Your content must have a corresponding URL.

  1. Include the PlusOneButton in your layout:

      plus:annotation="inline" />
  2. Assign the PlusOneButton to a member variable in your Activity.onCreate handler.

    mPlusOneButton = (PlusOneButton) findViewById(R.id.plus_one_button);
  3. Refresh the PlusOneButton's state each time the activity receives focus in your Activity.onResume handler.

    // The request code must be 0 or greater.
    private static final int PLUS_ONE_REQUEST_CODE = 0;
    protected void onResume() {
        // Refresh the state of the +1 button each time the activity receives focus.
        mPlusOneButton.initialize(URL, PLUS_ONE_REQUEST_CODE);

Use of the +1 Button is subject to the Google+ Platform Buttons Policy

Send feedback about...

Google+ Platform for Android
Google+ Platform for Android