Return to Video

onConnection Suspended

  • 0:00 - 0:04
    So for Step 5, you're going to implement
    the onConnectionSuspended override.
  • 0:06 - 0:09
    This function takes an integer
    parameter called cause.
  • 0:09 - 0:11
    You should use that to log the cause.
  • 0:11 - 0:14
    And this, of course, will be the cause
    of why the connection suspended.
  • 0:14 - 0:18
    And then, the other thing that you
    should do is then try to connect
  • 0:18 - 0:20
    the Google API Client again.
  • 0:20 - 0:21
    So, when the connection gets suspended,
  • 0:21 - 0:24
    the Google API Client
    should be reconnected.
  • 0:24 - 0:26
    When you're done implementing this,
    check this box.
Cím:
onConnection Suspended
Leírás:

more » « less
Video Language:
English
Team:
Udacity
Projekt:
ud876-5 - Google Play Services - Identity
Duration:
0:27

English subtitles

Felülvizsgálatok Compare revisions