blob: 3b5eb84cfc096262612abf030d60f1e2862c3dee [file] [log] [blame]
Robert Ly3c4b4f72012-11-30 04:02:04 -08001<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76<html>
77<head>
78<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
79
80<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
81<title>GooglePlayServicesClient.OnConnectionFailedListener | Android Developers</title>
82
83<!-- STYLESHEETS -->
84<link rel="stylesheet"
Robert Lyf6f5cf42013-02-04 18:24:15 -080085href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto">
Robert Ly3c4b4f72012-11-30 04:02:04 -080086<link href="/assets/css/default.css" rel="stylesheet" type="text/css">
87
88
89
90<!-- JAVASCRIPT -->
Dirk Dougherty8a72b6e2013-02-01 15:00:09 -080091<script src="//www.google.com/jsapi" type="text/javascript"></script>
Robert Lyf6f5cf42013-02-04 18:24:15 -080092<script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script>
Robert Ly3c4b4f72012-11-30 04:02:04 -080093<script type="text/javascript">
94 var toRoot = "/";
Robert Lyf6f5cf42013-02-04 18:24:15 -080095
96 var devsite = false;
97
Robert Ly3c4b4f72012-11-30 04:02:04 -080098</script>
99<script src="/assets/js/docs.js" type="text/javascript"></script>
100
101<script src="/gms_navtree_data.js" type="text/javascript"></script>
102<script src="/gcm_navtree_data.js" type="text/javascript"></script>
103
Robert Lyf6f5cf42013-02-04 18:24:15 -0800104
105<script type="text/javascript">
106 var _gaq = _gaq || [];
107 _gaq.push(['_setAccount', 'UA-5831155-1']);
108 _gaq.push(['_trackPageview']);
109
110 (function() {
111 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
112 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
113 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
114 })();
115</script>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800116</head>
Robert Ly555c93b2012-12-03 12:24:07 -0800117<body class="gc-documentation google
Robert Ly3c4b4f72012-11-30 04:02:04 -0800118 develop" itemscope itemtype="http://schema.org/Article">
119 <div id="doc-api-level" class="" style="display:none"></div>
120 <a name="top"></a>
121
122 <!-- Header -->
123 <div id="header">
124 <div class="wrap" id="header-wrap">
125 <div class="col-3 logo">
126 <a href="/index.html">
127 <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" />
128 </a>
129 <div class="btn-quicknav" id="btn-quicknav">
130 <a href="#" class="arrow-inactive">Quicknav</a>
131 <a href="#" class="arrow-active">Quicknav</a>
132 </div>
133 </div>
134 <ul class="nav-x col-9">
135 <li class="design">
Robert Ly05c8e632013-02-25 14:43:01 -0800136 <a href="/design/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800137 zh-TW-lang="設計"
138 zh-CN-lang="设计"
139 ru-lang="Проектирование"
140 ko-lang="디자인"
141 ja-lang="設計"
142 es-lang="Diseñar"
143 >Design</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800144 <li class="develop"><a href="/develop/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800145 zh-TW-lang="開發"
146 zh-CN-lang="开发"
147 ru-lang="Разработка"
148 ko-lang="개발"
149 ja-lang="開発"
150 es-lang="Desarrollar"
151 >Develop</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800152 <li class="distribute last"><a href="/distribute/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800153 zh-TW-lang="發佈"
154 zh-CN-lang="分发"
155 ru-lang="Распространение"
156 ko-lang="배포"
157 ja-lang="配布"
158 es-lang="Distribuir"
159 >Distribute</a></li>
160 </ul>
161
162 <!-- New Search -->
163 <div class="menu-container">
164 <div class="moremenu">
165 <div id="more-btn"></div>
166 </div>
167 <div class="morehover" id="moremenu">
168 <div class="top"></div>
169 <div class="mid">
170 <div class="header">Links</div>
171 <ul>
172 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
173 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
174 <li><a href="/about/index.html">About Android</a></li>
175 </ul>
176 <div class="header">Android Sites</div>
177 <ul>
178 <li><a href="http://www.android.com">Android.com</a></li>
179 <li class="active"><a>Android Developers</a></li>
180 <li><a href="http://source.android.com">Android Open Source Project</a></li>
181 </ul>
Robert Lyf6f5cf42013-02-04 18:24:15 -0800182
183
184
185
186 <div class="header">Language</div>
187 <div id="language" class="locales">
188 <select name="language" onChange="changeLangPref(this.value, true)">
189 <option value="en">English</option>
190 <option value="es">Español</option>
191 <option value="ja">日本語</option>
192 <option value="ko">한국어</option>
193 <option value="ru">Русский</option>
194 <option value="zh-CN">中文 (中国)</option>
195 <option value="zh-TW">中文 (台灣)</option>
196 </select>
197 </div>
198 <script type="text/javascript">
199 <!--
200 loadLangPref();
201 //-->
202 </script>
203
204
205
206
Robert Ly3c4b4f72012-11-30 04:02:04 -0800207 <br class="clearfix" />
208 </div>
209 <div class="bottom"></div>
210 </div>
211 <div class="search" id="search-container">
212 <div class="search-inner">
213 <div id="search-btn"></div>
214 <div class="left"></div>
215 <form onsubmit="return submit_search()">
216 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
217onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
218onkeydown="return search_changed(event, true, '/')"
219onkeyup="return search_changed(event, false, '/')" />
220 </form>
221 <div class="right"></div>
222 <a class="close hide">close</a>
223 <div class="left"></div>
224 <div class="right"></div>
225 </div>
226 </div>
227 <div id="search_filtered_wrapper">
228 <div id="search_filtered_div" class="no-display">
229 <ul id="search_filtered">
230 </ul>
231 </div>
232 </div>
233
234 </div>
235 <!-- /New Search>
236
237
238 <!-- Expanded quicknav -->
239 <div id="quicknav" class="col-9">
240 <ul>
241 <li class="design">
242 <ul>
243 <li><a href="/design/index.html">Get Started</a></li>
244 <li><a href="/design/style/index.html">Style</a></li>
245 <li><a href="/design/patterns/index.html">Patterns</a></li>
246 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li>
247 <li><a href="/design/downloads/index.html">Downloads</a></li>
248 <li><a href="/design/videos/index.html">Videos</a></li>
249 </ul>
250 </li>
251 <li class="develop">
252 <ul>
253 <li><a href="/training/index.html"
254 zh-TW-lang="訓練課程"
255 zh-CN-lang="培训"
256 ru-lang="Курсы"
257 ko-lang="교육"
258 ja-lang="トレーニング"
259 es-lang="Capacitación"
260 >Training</a></li>
261 <li><a href="/guide/components/index.html"
262 zh-TW-lang="API 指南"
263 zh-CN-lang="API 指南"
264 ru-lang="Руководства по API"
265 ko-lang="API 가이드"
266 ja-lang="API ガイド"
267 es-lang="Guías de la API"
268 >API Guides</a></li>
269 <li><a href="/reference/packages.html"
270 zh-TW-lang="參考資源"
271 zh-CN-lang="参考"
272 ru-lang="Справочник"
273 ko-lang="참조문서"
274 ja-lang="リファレンス"
275 es-lang="Referencia"
276 >Reference</a></li>
277 <li><a href="/tools/index.html"
278 zh-TW-lang="相關工具"
279 zh-CN-lang="工具"
280 ru-lang="Инструменты"
281 ko-lang="도구"
282 ja-lang="ツール"
283 es-lang="Herramientas"
284 >Tools</a>
285 <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul>
286 </li>
287 <li><a href="/google/index.html">Google Services</a>
288 </li>
289 </ul>
290 </li>
291 <li class="distribute last">
292 <ul>
293 <li><a href="/distribute/index.html">Google Play</a></li>
294 <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li>
295 <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li>
296 <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li>
297 <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li>
298 <li><a href="/distribute/open.html">Open Distribution</a></li>
299 </ul>
300 </li>
301 </ul>
302 </div>
303 <!-- /Expanded quicknav -->
304 </div>
305 </div>
306 <!-- /Header -->
307
308
309 <div id="searchResults" class="wrap" style="display:none;">
310 <h2 id="searchTitle">Results</h2>
311 <div id="leftSearchControl" class="search-control">Loading...</div>
312 </div>
313
314
315
316
317 <!-- Secondary x-nav -->
318 <div id="nav-x">
319 <div class="wrap">
320 <ul class="nav-x col-9 develop" style="width:100%">
Robert Ly05c8e632013-02-25 14:43:01 -0800321 <li class="training"><a href="/training/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800322 zh-TW-lang="訓練課程"
323 zh-CN-lang="培训"
324 ru-lang="Курсы"
325 ko-lang="교육"
326 ja-lang="トレーニング"
327 es-lang="Capacitación"
328 >Training</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800329 <li class="guide"><a href="/guide/components/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800330 zh-TW-lang="API 指南"
331 zh-CN-lang="API 指南"
332 ru-lang="Руководства по API"
333 ko-lang="API 가이드"
334 ja-lang="API ガイド"
335 es-lang="Guías de la API"
336 >API Guides</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800337 <li class="reference"><a href="/reference/packages.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800338 zh-TW-lang="參考資源"
339 zh-CN-lang="参考"
340 ru-lang="Справочник"
341 ko-lang="참조문서"
342 ja-lang="リファレンス"
343 es-lang="Referencia"
344 >Reference</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800345 <li class="tools"><a href="/tools/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800346 zh-TW-lang="相關工具"
347 zh-CN-lang="工具"
348 ru-lang="Инструменты"
349 ko-lang="도구"
350 ja-lang="ツール"
351 es-lang="Herramientas"
352 >Tools</a></li>
Robert Ly05c8e632013-02-25 14:43:01 -0800353 <li class="google"><a href="/google/index.html"
Robert Ly3c4b4f72012-11-30 04:02:04 -0800354 >Google Services</a>
355 </li>
356 </ul>
357 </div>
358
359 </div>
360 <!-- /Sendondary x-nav -->
361
362
Robert Ly3c4b4f72012-11-30 04:02:04 -0800363
Robert Ly3c4b4f72012-11-30 04:02:04 -0800364 <div class="wrap clearfix" id="body-content">
365 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
366 <div id="devdoc-nav" class="scroll-pane">
367<a class="totop" href="#top" data-g-event="left-nav-top">to top</a>
368
369
370
371<ul id="nav">
372 <li class="nav-section">
373 <div class="nav-section-header empty"><a href="/google/index.html">
374 <span class="en">Overview</span>
375 </a></div>
376 </li>
377
378 <li class="nav-section">
379 <div class="nav-section-header"><a href="/google/play-services/index.html">
Robert Lyd84d5cc2013-01-04 10:13:35 -0800380 <span class="en">Google Play Services</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800381 </div>
382 <ul>
383 <li><a href="/google/play-services/setup.html">
384 <span class="en">Setup</span></a>
385 </li>
386
387 <li><a href="/google/play-services/auth.html">
Robert Lyd84d5cc2013-01-04 10:13:35 -0800388 <span class="en">Authorization</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800389 </li>
390
391 <li><a href="/google/play-services/plus.html">
392 <span class="en">Google+</span></a>
393 </li>
394
395 <li><a href="/google/play-services/maps.html">
Robert Ly672b3ad2012-11-30 16:15:46 -0800396 <span class="en">Google Maps</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800397 </li>
398
399 <li id="gms-tree-list" class="nav-section">
400 <div class="nav-section-header">
401 <a href="/reference/gms-packages.html">
402 <span class="en">Reference</span>
403 </a>
404 <div>
405 </li>
406
407 </ul>
408 </li>
409
Robert Lyd84d5cc2013-01-04 10:13:35 -0800410
Robert Ly3c4b4f72012-11-30 04:02:04 -0800411 <li class="nav-section">
412 <div class="nav-section-header"><a href="/google/play/billing/index.html">
Robert Ly672b3ad2012-11-30 16:15:46 -0800413 <span class="en">Google Play In-app Billing</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800414 </div>
415 <ul>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800416 <li><a href="/google/play/billing/billing_overview.html">
417 <span class="en">Overview</span></a>
418 </li>
419 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html">
420 <span class="en">Version 3 API</span></a></div>
421 <ul>
422 <li><a href="/google/play/billing/billing_integrate.html">
423 <span class="en">Implementing the API</span></a></li>
424 <li><a href="/google/play/billing/billing_reference.html">
425 <span class="en">Reference</span></a></li>
426 </ul>
427 </li>
428 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html">
429 <span class="en">Version 2 API</span></a></div>
430 <ul>
431 <li><a href="/google/play/billing/v2/billing_integrate.html">
432 <span class="en">Implementing the API</span></a></li>
433 <li><a href="/google/play/billing/v2/billing_subscriptions.html">
434 <span class="en">Subscriptions</span></a></li>
435 <li><a href="/google/play/billing/v2/billing_reference.html">
436 <span class="en">Reference</span></a></li>
437 </ul>
438 </li>
Robert Ly05c8e632013-02-25 14:43:01 -0800439 <li><a href="/google/play/billing/billing_subscriptions.html">
440 <span class="en">Subscriptions</span></a>
441 </li>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800442 <li><a href="/google/play/billing/billing_best_practices.html">
Robert Ly3c4b4f72012-11-30 04:02:04 -0800443 <span class="en">Security and Design</span></a>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800444 </li>
445 <li><a href="/google/play/billing/billing_testing.html">
Robert Ly555c93b2012-12-03 12:24:07 -0800446 <span class="en">Testing In-app Billing</span></a>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800447 </li>
448 <li><a href="/google/play/billing/billing_admin.html">
Robert Ly3c4b4f72012-11-30 04:02:04 -0800449 <span class="en">Administering In-app Billing</span></a>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800450 </li>
451 <li><a href="/google/play/billing/versions.html">
452 <span class="en">Version Notes</span></a>
453 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800454 </ul>
455 </li>
456
457 <li class="nav-section">
458 <div class="nav-section-header"><a href="/google/play/dist.html">
Robert Ly672b3ad2012-11-30 16:15:46 -0800459 <span class="en">Google Play Distribution</span></a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800460 </div>
461 <ul>
462 <li><a href="/google/play/filters.html">
463 <span class="en">Filters on Google Play</span></a>
464 </li>
465
466 <li><a href="/google/play/publishing/multiple-apks.html">
467 <span class="en">Multiple APK Support</span></a>
468 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800469 <li><a href="/google/play/expansion-files.html">
470 <span class="en">APK Expansion Files</span></a>
471 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800472 <li class="nav-section">
473 <div class="nav-section-header"><a href="/google/play/licensing/index.html">
474 <span class="en">Application Licensing</span></a>
475 </div>
476 <ul>
477 <li><a href="/google/play/licensing/overview.html">
478 <span class="en">Licensing Overview</span></a>
479 </li>
480 <li><a href="/google/play/licensing/setting-up.html">
481 <span class="en">Setting Up for Licensing</span></a>
482 </li>
483 <li><a href="/google/play/licensing/adding-licensing.html">
484 <span class="en">Adding Licensing to Your App</span></a>
485 </li>
486 <li><a href="/google/play/licensing/licensing-reference.html">
487 <span class="en">Licensing Reference</span></a>
488 </li>
489 </ul>
490 </li>
491 </ul>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800492 </li>
493
494 <li class="nav-section">
495 <div class="nav-section-header"><a href="/google/gcm/index.html">
496 <span class="en">Google Cloud Messaging</span></a>
497 </div>
498 <ul>
499 <li><a href="/google/gcm/gs.html">
500 <span class="en">Getting Started</span></a>
501 </li>
502 <li><a href="/google/gcm/gcm.html">
503 <span class="en">Architectural Overview</span></a>
504 </li>
505 <li><a href="/google/gcm/demo.html">
506 <span class="en">Demo App Tutorial</span></a>
507 </li>
508 <li><a href="/google/gcm/adv.html">
509 <span class="en">Advanced Topics</span></a>
510 </li>
511 <li><a href="/google/gcm/c2dm.html">
512 <span class="en">Migration</span></a>
513 </li>
514 <li id="gcm-tree-list" class="nav-section">
515 <div class="nav-section-header">
516 <a href="/reference/gcm-packages.html">
517 <span class="en">Reference</span>
518 </a>
519 <div>
520 </li>
521 </ul>
522 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800523
524
Robert Lyd84d5cc2013-01-04 10:13:35 -0800525 <li class="nav-section">
526 <div class="nav-section-header"><a href="/google/backup/index.html">
527 Android Backup Service</a>
528 </div>
529 <ul>
530 <li><a href="/google/backup/signup.html">
531 Register</a>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800532 </li>
Robert Lyd84d5cc2013-01-04 10:13:35 -0800533 </ul>
534 </li>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800535
Robert Ly3c4b4f72012-11-30 04:02:04 -0800536</ul>
537
538<script type="text/javascript">
539<!--
540 buildToggleLists();
541 changeNavLang(getLangPref());
542//-->
543</script>
544
545
546
547
548 </div>
549 <script type="text/javascript">
550 showGoogleRefTree();
551
552 </script>
553 </div> <!-- end side-nav -->
554 <script>
555 $(document).ready(function() {
556 scrollIntoView("devdoc-nav");
557 });
558 </script>
559
560
Robert Ly3c4b4f72012-11-30 04:02:04 -0800561
562
563<div class="col-12" id="doc-col">
564
565<div id="api-info-block">
566
567
568
569
570<div class="sum-details-links">
571
572</div><!-- end sum-details-links -->
573<div class="api-level">
574
575
576
577
578</div>
579</div><!-- end api-info-block -->
580
581
582<!-- ======== START OF CLASS DATA ======== -->
583
584<div id="jd-header">
585 public
586 static
587
588
589 interface
590<h1 itemprop="name">GooglePlayServicesClient.OnConnectionFailedListener</h1>
591
592
593
594
595
596
597
598
599</div><!-- end header -->
600
601<div id="naMessage"></div>
602
603<div id="jd-content" class="api apilevel-">
604<table class="jd-inheritance-table">
605
606
607 <tr>
608
609 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener</td>
610 </tr>
611
612
613</table>
614
615
616
617
618
619
620
621<div class="jd-descr">
622
623
624<h2>Class Overview</h2>
625<p itemprop="articleBody">Provides callbacks for scenarios that result in a failed attempt to
626 connect the client to the service. See <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html">ConnectionResult</a></code>
627 for a list of error codes and suggestions for resolution.
628</p>
629
630
631
632
633
634</div><!-- jd-descr -->
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651<div class="jd-descr">
652
653
654<h2>Summary</h2>
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682<!-- ========== METHOD SUMMARY =========== -->
683<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
684
685
686
687
688 <tr class="alt-color api apilevel-" >
689 <td class="jd-typecol"><nobr>
690 abstract
691
692
693
694
695 void</nobr>
696 </td>
697 <td class="jd-linkcol" width="100%"><nobr>
698 <span class="sympad"><a href="/reference/com/google/android/gms/common/GooglePlayServicesClient.OnConnectionFailedListener.html#onConnectionFailed(com.google.android.gms.common.ConnectionResult)">onConnectionFailed</a></span>(<a href="/reference/com/google/android/gms/common/ConnectionResult.html">ConnectionResult</a> result)</nobr>
699
700 <div class="jd-descrdiv">Called when there was an error connecting the client to the service.</div>
701
702 </td></tr>
703
704
705
706</table>
707
708
709
710
711
712
713
714</div><!-- jd-descr (summary) -->
715
716<!-- Details -->
717
718
719
720
721
722
723
724
725<!-- XML Attributes -->
726
727
728<!-- Enum Values -->
729
730
731<!-- Constants -->
732
733
734<!-- Fields -->
735
736
737<!-- Public ctors -->
738
739
740
741<!-- ========= CONSTRUCTOR DETAIL ======== -->
742<!-- Protected ctors -->
743
744
745
746<!-- ========= METHOD DETAIL ======== -->
747<!-- Public methdos -->
748
749<h2>Public Methods</h2>
750
751
752
753<A NAME="onConnectionFailed(com.google.android.gms.common.ConnectionResult)"></A>
754
755<div class="jd-details api apilevel-">
756 <h4 class="jd-details-title">
757 <span class="normal">
758 public
759
760
761 abstract
762
763 void
764 </span>
765 <span class="sympad">onConnectionFailed</span>
766 <span class="normal">(<a href="/reference/com/google/android/gms/common/ConnectionResult.html">ConnectionResult</a> result)</span>
767 </h4>
768 <div class="api-level">
769 <div></div>
770
771
772
773 </div>
774 <div class="jd-details-descr">
775
776 <div class="jd-tagdata jd-tagdescr"><p>Called when there was an error connecting the client to the service.</p></div>
777 <div class="jd-tagdata">
778 <h5 class="jd-tagtitle">Parameters</h5>
779 <table class="jd-tagtable">
780 <tr>
781 <th>result</td>
782 <td>A <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html">ConnectionResult</a></code> that can be used for resolving the
783 error, and deciding what sort of error occurred. To resolve the error,
784 the resolution must be started from an activity
785 with a non-negative <code>requestCode</code> passed to
786 <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult(android.app.Activity, int)">startResolutionForResult(Activity, int)</a></code>.
787 Applications should implement onActivityResult in their Activity to
788 call <code><a href="/reference/com/google/android/gms/common/GooglePlayServicesClient.html#connect()">connect()</a></code> again if the user has
Robert Ly672b3ad2012-11-30 16:15:46 -0800789 resolved the issue (resultCode is <code><a href="/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></code>).
Robert Ly3c4b4f72012-11-30 04:02:04 -0800790</td>
791 </tr>
792 </table>
793 </div>
794
795 </div>
796</div>
797
798
799
800
801
802<!-- ========= METHOD DETAIL ======== -->
803
804
805
806<!-- ========= END OF CLASS DATA ========= -->
807<A NAME="navbar_top"></A>
808
809<div id="footer" class="wrap" >
810
811
812 <div id="copyright">
813
814 Except as noted, this content is licensed under <a
815 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
816 For details and restrictions, see the <a href="/license.html">
817 Content License</a>.
818 </div>
Robert Lyf6f5cf42013-02-04 18:24:15 -0800819 <div id="build_info">
820
821<script src="/timestamp.js" type="text/javascript"></script>
822<script>document.write(BUILD_TIMESTAMP)</script>
823
824 </div>
Robert Ly3c4b4f72012-11-30 04:02:04 -0800825
826
827 <div id="footerlinks">
828
829 <p>
830 <a href="/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
831 <a href="/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
832 <a href="/support.html">Support</a>
833 </p>
834 </div>
835
836</div> <!-- end footer -->
837</div> <!-- jd-content -->
838
839</div><!-- end doc-content -->
840
841</div> <!-- end body-content -->
842
843
844
845
Robert Ly3c4b4f72012-11-30 04:02:04 -0800846
847
848</body>
849</html>