Return to Video

onConnected

  • 0:00 - 0:03
    So for Step 6, on the activity itself,
  • 0:03 - 0:06
    create a class variable
    called mSignInProgress.
  • 0:06 - 0:12
    And three constants, STATE_SIGNED_IN,
    STATE_SIGNING_IN and STATE_PROGRESS.
  • 0:12 - 0:17
    And give these the values 0,
    1 and 2 respectively.
  • 0:17 - 0:20
    Then in your OnConnected override,
    which you need to implement,
  • 0:20 - 0:23
    you're going to manage the buttons.
  • 0:23 - 0:26
    So this disables the sign-in button and
    enables the sign-out and
  • 0:26 - 0:28
    the revoke buttons.
  • 0:28 - 0:31
    Then also you want set
    the mSignInProgress,
  • 0:31 - 0:33
    this value, to STATE_SIGNED_IN.
  • 0:33 - 0:34
    because you've just signed in.
  • 0:34 - 0:39
    And then finally use the Plus.People.Api
    to get the user's name.
  • 0:39 - 0:41
    And set the status control
    to the user's name.
  • 0:41 - 0:43
    And when you've done all this,
    check this box.
Tytuł:
onConnected
Opis:

more » « less
Video Language:
English
Team:
Udacity
Projekt:
ud876-5 - Google Play Services - Identity
Duration:
0:44
Udacity Robot edited angielski subtitles for onConnected
Udacity Robot edited angielski subtitles for onConnected
Udacity Robot edited angielski subtitles for onConnected
Cogi-Admin edited angielski subtitles for onConnected

English subtitles

Revisions Compare revisions