Using Google+ Platform for Android lets a developer authenticate users using the same credentials that they use on Google+. It also enables the use of their public profile and social graph to welcome users by their name, display their pictures, and connect with their friends.
Import the Google+ sample project to learn about the most important classes. The Google+ sample project can be found in the Google Play services installation folder, at /google_play_services/samples/plus/
. The com.google.android.gms.samples.plus
package contains Google+ Platform for Android classes. The following are the classes found in this package:
PlusClient
andPlusClient.Builder
:PlusClient
is the main class of the API. It is the entry point for Google+ integration.PlusClient.Builder
is a builder used to configure thePlusClient
object to communicate properly with the Google+ APIs.PlusOneButton
: This class implements a +1 button to recommend a URL on Google+. Add it to a layout using...