Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.


Google Play Services Course

via Treehouse


Google Play Services are a suite of APIs that give developers access to Google’s extensive cloud services and access the user’s Google account for personalization on Android devices. Google Play Services comes pre-installed on user’s devices and auto-updates every 6 weeks providing the latest APIs on all devices accessing the Play Store. You’ll learn the code necessary to access APIs like Google+ to bring personalization to your user experience. You’ll learn common errors and how to handle devices that can’t access Play Services. When you’re done you’ll be able to add other services like Maps, Cast, or Ads to elevate your app above the competition.

What you'll learn

  • Add Google Play Services to your project
  • Add Maps, Cast, or Ads
  • Working within Google+


Adding Play Services to your App

The app you’re about to build allows you to share items you find on Etsy with your friends on Google+. It makes use of two APIs provided by Google and Etsy. To gain access to their API you need to register your app by visiting their site and following the directions. Here’s what it takes to make it happen:

Chevron 4 steps
  • Authorize Google+ API in the Google API Console


  • Connecting Your Project to the API


  • Adding the Code Library and Permissions


  • Review: Adding Play Services

    5 questions

Interacting with Your API

Before you can share data through the Google+ APIs you need a UI to display items from Etsy. You can access Etsy’s API with the help of a library and display items in a beautiful grid.

Chevron 10 steps
  • Add Third Party Libraries


  • Data Model Classes


  • Interacting with Retrofit


  • Write a Retrofit interface

    4 objectives

  • Writing Your UI Code with RecyclerView


  • Writing Your Adapter Class


  • Defining onBindViewHolder()

    4 objectives

  • Wrapping Your UI Code


  • Display Loading and Error States


  • Review: Interacting with the API

    5 questions

Connecting to Play Services

With data ready to share now you can add in Google Play Services to your project. Play Services already reside on the device as part of the Google Play Store. Here’s how we can connect to them:

Chevron 6 steps
  • Create GooglePlayServiceHelper


  • State Handling of GoogleApiClient


  • Handling Error State


  • Integrating GoogleServicesHelper


  • Notify an Adapter of Changed Data

    1 objective

  • Review: Connecting to Play Services

    5 questions

Interacting with Google+ APIs

Now that you’re connected with Google Play Services access the user’s Google+ account and allow them to share items with their friends:

Chevron 7 steps
  • Requesting Access to Google+ APIs


  • Setup the PlusOneButton


  • Share Button


  • Using a Share Intent

    4 objectives

  • UI Polish for your App


  • Conclusion


  • Review: Interacting with Google+ APIs

    4 questions

Taught by

Jamie Huson

Related Courses


Start your review of Google Play Services Course

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free