1<!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 77 78<html> 79<head> 80 81 82<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 83<meta name="viewport" content="width=device-width" /> 84 85<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> 86<title>ConnectionResult | Android Developers</title> 87 88<!-- STYLESHEETS --> 89<link rel="stylesheet" 90href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto"> 91<link href="/assets/css/default.css" rel="stylesheet" type="text/css"> 92 93 94 95<!-- JAVASCRIPT --> 96<script src="//www.google.com/jsapi" type="text/javascript"></script> 97<script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script> 98<script type="text/javascript"> 99 var toRoot = "/"; 100 var devsite = false; 101</script> 102<script src="/assets/js/docs.js" type="text/javascript"></script> 103 104<script type="text/javascript"> 105 var _gaq = _gaq || []; 106 _gaq.push(['_setAccount', 'UA-5831155-1']); 107 _gaq.push(['_trackPageview']); 108 109 (function() { 110 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 111 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 112 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 113 })(); 114</script> 115</head> 116<body class="gc-documentation google 117 develop" itemscope itemtype="http://schema.org/Article"> 118 <div id="doc-api-level" class="" style="display:none"></div> 119 <a name="top"></a> 120 121<a name="top"></a> 122 123 <!-- Header --> 124 <div id="header"> 125 <div class="wrap" id="header-wrap"> 126 <div class="col-3 logo"> 127 <a href="/index.html"> 128 <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" /> 129 </a> 130 <div class="btn-quicknav" id="btn-quicknav"> 131 <a href="#" class="arrow-inactive">Quicknav</a> 132 <a href="#" class="arrow-active">Quicknav</a> 133 </div> 134 </div> 135 <ul class="nav-x col-9"> 136 <li class="design"> 137 <a href="/design/index.html" 138 zh-tw-lang="設計" 139 zh-cn-lang="设计" 140 ru-lang="Проектирование" 141 ko-lang="디자인" 142 ja-lang="設計" 143 es-lang="Diseñar" 144 >Design</a></li> 145 <li class="develop"><a href="/develop/index.html" 146 zh-tw-lang="開發" 147 zh-cn-lang="开发" 148 ru-lang="Разработка" 149 ko-lang="개발" 150 ja-lang="開発" 151 es-lang="Desarrollar" 152 >Develop</a></li> 153 <li class="distribute last"><a href="/distribute/index.html" 154 zh-tw-lang="發佈" 155 zh-cn-lang="分发" 156 ru-lang="Распространение" 157 ko-lang="배포" 158 ja-lang="配布" 159 es-lang="Distribuir" 160 >Distribute</a></li> 161 </ul> 162 163 <!-- New Search --> 164 <div class="menu-container"> 165 <div class="moremenu"> 166 <div id="more-btn"></div> 167 </div> 168 <div class="morehover" id="moremenu"> 169 <div class="top"></div> 170 <div class="mid"> 171 <div class="header">Links</div> 172 <ul> 173 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li> 174 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 175 <li><a href="/about/index.html">About Android</a></li> 176 </ul> 177 <div class="header">Android Sites</div> 178 <ul> 179 <li><a href="http://www.android.com">Android.com</a></li> 180 <li class="active"><a>Android Developers</a></li> 181 <li><a href="http://source.android.com">Android Open Source Project</a></li> 182 </ul> 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 207 <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 228 <div class="search_filtered_wrapper reference"> 229 <div class="suggest-card reference no-display"> 230 <ul class="search_filtered"> 231 </ul> 232 </div> 233 </div> 234 235 <div class="search_filtered_wrapper docs"> 236 <div class="suggest-card dummy no-display"> </div> 237 <div class="suggest-card develop no-display"> 238 <ul class="search_filtered"> 239 </ul> 240 <div class="child-card guides no-display"> 241 </div> 242 <div class="child-card training no-display"> 243 </div> 244 </div> 245 <div class="suggest-card design no-display"> 246 <ul class="search_filtered"> 247 </ul> 248 </div> 249 <div class="suggest-card distribute no-display"> 250 <ul class="search_filtered"> 251 </ul> 252 </div> 253 </div> 254 255 </div> 256 <!-- /New Search> 257 258 259 <!-- Expanded quicknav --> 260 <div id="quicknav" class="col-9"> 261 <ul> 262 <li class="design"> 263 <ul> 264 <li><a href="/design/index.html">Get Started</a></li> 265 <li><a href="/design/style/index.html">Style</a></li> 266 <li><a href="/design/patterns/index.html">Patterns</a></li> 267 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li> 268 <li><a href="/design/downloads/index.html">Downloads</a></li> 269 <li><a href="/design/videos/index.html">Videos</a></li> 270 </ul> 271 </li> 272 <li class="develop"> 273 <ul> 274 <li><a href="/training/index.html" 275 zh-tw-lang="訓練課程" 276 zh-cn-lang="培训" 277 ru-lang="Курсы" 278 ko-lang="교육" 279 ja-lang="トレーニング" 280 es-lang="Capacitación" 281 >Training</a></li> 282 <li><a href="/guide/components/index.html" 283 zh-tw-lang="API 指南" 284 zh-cn-lang="API 指南" 285 ru-lang="Руководства по API" 286 ko-lang="API 가이드" 287 ja-lang="API ガイド" 288 es-lang="Guías de la API" 289 >API Guides</a></li> 290 <li><a href="/reference/packages.html" 291 zh-tw-lang="參考資源" 292 zh-cn-lang="参考" 293 ru-lang="Справочник" 294 ko-lang="참조문서" 295 ja-lang="リファレンス" 296 es-lang="Referencia" 297 >Reference</a></li> 298 <li><a href="/tools/index.html" 299 zh-tw-lang="相關工具" 300 zh-cn-lang="工具" 301 ru-lang="Инструменты" 302 ko-lang="도구" 303 ja-lang="ツール" 304 es-lang="Herramientas" 305 >Tools</a> 306 <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul> 307 </li> 308 <li><a href="/google/index.html">Google Services</a> 309 </li> 310 311 </ul> 312 </li> 313 <li class="distribute last"> 314 <ul> 315 <li><a href="/distribute/index.html">Google Play</a></li> 316 <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li> 317 <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li> 318 <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li> 319 <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li> 320 <li><a href="/distribute/open.html">Open Distribution</a></li> 321 </ul> 322 </li> 323 </ul> 324 </div> 325 <!-- /Expanded quicknav --> 326 </div> 327 </div> 328 <!-- /Header --> 329 330 331 <div id="searchResults" class="wrap" style="display:none;"> 332 <h2 id="searchTitle">Results</h2> 333 <div id="leftSearchControl" class="search-control">Loading...</div> 334 </div> 335 336 337 338 <!-- Secondary x-nav --> 339 <div id="nav-x"> 340 <div class="wrap"> 341 <ul class="nav-x col-9 develop" style="width:100%"> 342 <li class="training"><a href="/training/index.html" 343 zh-tw-lang="訓練課程" 344 zh-cn-lang="培训" 345 ru-lang="Курсы" 346 ko-lang="교육" 347 ja-lang="トレーニング" 348 es-lang="Capacitación" 349 >Training</a></li> 350 <li class="guide"><a href="/guide/components/index.html" 351 zh-tw-lang="API 指南" 352 zh-cn-lang="API 指南" 353 ru-lang="Руководства по API" 354 ko-lang="API 가이드" 355 ja-lang="API ガイド" 356 es-lang="Guías de la API" 357 >API Guides</a></li> 358 <li class="reference"><a href="/reference/packages.html" 359 zh-tw-lang="參考資源" 360 zh-cn-lang="参考" 361 ru-lang="Справочник" 362 ko-lang="참조문서" 363 ja-lang="リファレンス" 364 es-lang="Referencia" 365 >Reference</a></li> 366 <li class="tools"><a href="/tools/index.html" 367 zh-tw-lang="相關工具" 368 zh-cn-lang="工具" 369 ru-lang="Инструменты" 370 ko-lang="도구" 371 ja-lang="ツール" 372 es-lang="Herramientas" 373 >Tools</a></li> 374 <li class="google"><a href="/google/index.html" 375 >Google Services</a> 376 </li> 377 378 </ul> 379 </div> 380 381 </div> 382 <!-- /Sendondary x-nav --> 383 384 385 386 387 388 389 390 391 392 <div class="wrap clearfix" id="body-content"> 393 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 394 <div id="devdoc-nav" class="scroll-pane"> 395<a class="totop" href="#top" data-g-event="left-nav-top">to top</a> 396 397 398 399<ul id="nav"> 400 401 <li class="nav-section"> 402 <div class="nav-section-header empty"><a href="/google/index.html"> 403 <span class="en">Overview</span> 404 </a></div> 405 </li> 406 407 <li class="nav-section"> 408 <div class="nav-section-header empty"><a href="/google/play-services/games.html"> 409 <span class="en">Games</span> 410 </a></div> 411 </li> 412 <li class="nav-section"> 413 <div class="nav-section-header empty"><a href="/google/play-services/location.html"> 414 <span class="en">Location</span> 415 </a></div> 416 </li> 417 <li class="nav-section"> 418 <div class="nav-section-header empty"><a href="/google/play-services/plus.html"> 419 <span class="en">Google+</span> 420 </a></div> 421 </li> 422 <li class="nav-section"> 423 <div class="nav-section-header empty"><a href="/google/play-services/maps.html"> 424 <span class="en">Maps</span> 425 </a></div> 426 </li> 427 <li class="nav-section"> 428 <div class="nav-section-header"><a href="/google/play-services/ads.html"> 429 <span class="en">Ads</span></a> 430 </div> 431 <ul> 432 <li><a href="/google/play-services/id.html"> 433 <span class="en">Advertising ID</span></a> 434 </li> 435 </ul> 436 </li> 437 <li class="nav-section"> 438 <div class="nav-section-header empty"><a href="/google/play-services/wallet.html"> 439 <span class="en">Wallet</span> 440 </a></div> 441 </li> 442 <li class="nav-section"> 443 <div class="nav-section-header empty"><a href="/google/play-services/auth.html"> 444 <span class="en">Authorization</span> 445 </a></div> 446 </li> 447 448 449 450 <li class="nav-section"> 451 <div class="nav-section-header"><a href="/google/play-services/index.html"> 452 <span class="en">Google Play Services</span></a> 453 </div> 454 <ul> 455 <li><a href="/google/play-services/setup.html"> 456 <span class="en">Setup</span></a> 457 </li> 458 <li id="gms-tree-list" class="nav-section"> 459 <div class="nav-section-header"> 460 <a href="/reference/gms-packages.html"> 461 <span class="en">Reference</span> 462 </a> 463 <div> 464 </li> 465 </ul> 466 </li> 467 468 469 <li class="nav-section"> 470 <div class="nav-section-header"><a href="/google/play/billing/index.html"> 471 <span class="en">Google Play In-app Billing</span></a> 472 </div> 473 <ul> 474 <li><a href="/google/play/billing/billing_overview.html"> 475 <span class="en">Overview</span></a> 476 </li> 477 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html"> 478 <span class="en">Version 3 API</span></a></div> 479 <ul> 480 <li><a href="/google/play/billing/billing_integrate.html"> 481 <span class="en">Implementing the API</span></a></li> 482 <li><a href="/google/play/billing/billing_reference.html"> 483 <span class="en">Reference</span></a></li> 484 </ul> 485 </li> 486 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html"> 487 <span class="en">Version 2 API</span></a></div> 488 <ul> 489 <li><a href="/google/play/billing/v2/billing_integrate.html"> 490 <span class="en">Implementing the API</span></a></li> 491 <li><a href="/google/play/billing/v2/billing_subscriptions.html"> 492 <span class="en">Subscriptions</span></a></li> 493 <li><a href="/google/play/billing/v2/billing_reference.html"> 494 <span class="en">Reference</span></a></li> 495 </ul> 496 </li> 497 <li><a href="/google/play/billing/billing_subscriptions.html"> 498 <span class="en">Subscriptions</span></a> 499 </li> 500 <li><a href="/google/play/billing/billing_best_practices.html"> 501 <span class="en">Security and Design</span></a> 502 </li> 503 <li><a href="/google/play/billing/billing_testing.html"> 504 <span class="en">Testing In-app Billing</span></a> 505 </li> 506 <li><a href="/google/play/billing/billing_admin.html"> 507 <span class="en">Administering In-app Billing</span></a> 508 </li> 509 <li><a href="/google/play/billing/gp-purchase-status-api.html"> 510 <span class="en">Purchase Status API</span></a> 511 </li> 512 <li><a href="/google/play/billing/versions.html"> 513 <span class="en">Version Notes</span></a> 514 </li> 515 </ul> 516 </li> 517 518 519 520 <li class="nav-section"> 521 <div class="nav-section-header"><a href="/google/gcm/index.html"> 522 <span class="en">Google Cloud Messaging</span></a> 523 </div> 524 <ul> 525 <li><a href="/google/gcm/gs.html"> 526 <span class="en">Getting Started</span></a> 527 </li> 528 <li><a href="/google/gcm/gcm.html"> 529 <span class="en">Architectural Overview</span></a> 530 </li> 531 <li><a href="/google/gcm/ccs.html"> 532 <span class="en">Cloud Connection Server</span></a> 533 </li> 534 <li><a href="/google/gcm/notifications.html"> 535 <span class="en">User Notifications</span></a> 536 </li> 537 <li><a href="/google/gcm/client.html"> 538 <span class="en">GCM Client</span></a> 539 </li> 540 <li><a href="/google/gcm/server.html"> 541 <span class="en">GCM Server</span></a> 542 </li> 543 <li><a href="/google/gcm/adv.html"> 544 <span class="en">Advanced Topics</span></a> 545 </li> 546 <li><a href="/google/gcm/c2dm.html"> 547 <span class="en">Migration</span></a> 548 </li> 549 <li id="gcm-tree-list" class="nav-section"> 550 <div class="nav-section-header"> 551 <a href="/reference/gcm-packages.html"> 552 <span class="en">Reference</span> 553 </a> 554 <div> 555 </li> 556 </ul> 557 </li> 558 559 <li class="nav-section"> 560 <div class="nav-section-header"><a href="/google/play/dist.html"> 561 <span class="en">Google Play Distribution</span></a> 562 </div> 563 <ul> 564 <li><a href="/google/play/filters.html"> 565 <span class="en">Filters on Google Play</span></a> 566 </li> 567 568 <li><a href="/google/play/publishing/multiple-apks.html"> 569 <span class="en">Multiple APK Support</span></a> 570 </li> 571 <li><a href="/google/play/expansion-files.html"> 572 <span class="en">APK Expansion Files</span></a> 573 </li> 574 <li class="nav-section"> 575 <div class="nav-section-header"><a href="/google/play/licensing/index.html"> 576 <span class="en">Application Licensing</span></a> 577 </div> 578 <ul> 579 <li><a href="/google/play/licensing/overview.html"> 580 <span class="en">Licensing Overview</span></a> 581 </li> 582 <li><a href="/google/play/licensing/setting-up.html"> 583 <span class="en">Setting Up for Licensing</span></a> 584 </li> 585 <li><a href="/google/play/licensing/adding-licensing.html"> 586 <span class="en">Adding Licensing to Your App</span></a> 587 </li> 588 <li><a href="/google/play/licensing/licensing-reference.html"> 589 <span class="en">Licensing Reference</span></a> 590 </li> 591 </ul> 592 </li> 593 594 <li class="nav-section"> 595 <div class="nav-section-header"><a href="/google/backup/index.html"> 596 Android Backup Service</a> 597 </div> 598 <ul> 599 <li><a href="/google/backup/signup.html"> 600 Register</a> 601 </li> 602 </ul> 603 </li> 604 605 </ul> 606 607</li> 608 609 610 611</ul> 612 613<script type="text/javascript"> 614<!-- 615 buildToggleLists(); 616 changeNavLang(getLangPref()); 617//--> 618</script> 619 620 621 622 623 </div> 624 <script type="text/javascript"> 625 showGoogleRefTree(); 626 627 </script> 628 </div> <!-- end side-nav --> 629 <script> 630 $(document).ready(function() { 631 scrollIntoView("devdoc-nav"); 632 }); 633 </script> 634 635 636 637 638 639 640<div class="col-12" id="doc-col"> 641 642<div id="api-info-block"> 643 644 645 646 647 648 649 650 651 652 653 654<div class="sum-details-links"> 655 656Summary: 657 658 659 660 661 662 <a href="#constants">Constants</a> 663 664 665 666 667 668 669 | <a href="#pubctors">Ctors</a> 670 671 672 673 674 | <a href="#pubmethods">Methods</a> 675 676 677 678 679 | <a href="#inhmethods">Inherited Methods</a> 680 681| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 682 683</div><!-- end sum-details-links --> 684<div class="api-level"> 685 686 687 688 689</div> 690</div><!-- end api-info-block --> 691 692 693<!-- ======== START OF CLASS DATA ======== --> 694 695<div id="jd-header"> 696 public 697 698 final 699 700 class 701<h1 itemprop="name">ConnectionResult</h1> 702 703 704 705 706 extends Object<br/> 707 708 709 710 711 712 713 714 715 716</div><!-- end header --> 717 718<div id="naMessage"></div> 719 720<div id="jd-content" class="api apilevel-"> 721<table class="jd-inheritance-table"> 722 723 724 <tr> 725 726 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> 727 </tr> 728 729 730 <tr> 731 732 <td class="jd-inheritance-space"> ↳</td> 733 734 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.common.ConnectionResult</td> 735 </tr> 736 737 738</table> 739 740 741 742 743 744 745 746<div class="jd-descr"> 747 748 749<h2>Class Overview</h2> 750<p itemprop="articleBody">Contains all possible error codes for when a client fails to connect to Google Play services. 751 These error codes are used by <code><a href="/reference/com/google/android/gms/common/GooglePlayServicesClient.OnConnectionFailedListener.html">GooglePlayServicesClient.OnConnectionFailedListener</a></code>. 752</p> 753 754 755 756 757 758</div><!-- jd-descr --> 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775<div class="jd-descr"> 776 777 778<h2>Summary</h2> 779 780 781 782 783 784 785 786 787 788 789 790 791 792<!-- =========== ENUM CONSTANT SUMMARY =========== --> 793<table id="constants" class="jd-sumtable"><tr><th colspan="12">Constants</th></tr> 794 795 796 797 <tr class="alt-color api apilevel-" > 798 <td class="jd-typecol">int</td> 799 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#DATE_INVALID">DATE_INVALID</a></td> 800 <td class="jd-descrcol" width="100%">The device date is likely set incorrectly.</td> 801 </tr> 802 803 804 <tr class=" api apilevel-" > 805 <td class="jd-typecol">int</td> 806 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#DEVELOPER_ERROR">DEVELOPER_ERROR</a></td> 807 <td class="jd-descrcol" width="100%">The application is misconfigured.</td> 808 </tr> 809 810 811 <tr class="alt-color api apilevel-" > 812 <td class="jd-typecol">int</td> 813 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#INTERNAL_ERROR">INTERNAL_ERROR</a></td> 814 <td class="jd-descrcol" width="100%">An internal error occurred.</td> 815 </tr> 816 817 818 <tr class=" api apilevel-" > 819 <td class="jd-typecol">int</td> 820 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#INVALID_ACCOUNT">INVALID_ACCOUNT</a></td> 821 <td class="jd-descrcol" width="100%">The client attempted to connect to the service with an invalid account name 822 specified.</td> 823 </tr> 824 825 826 <tr class="alt-color api apilevel-" > 827 <td class="jd-typecol">int</td> 828 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#LICENSE_CHECK_FAILED">LICENSE_CHECK_FAILED</a></td> 829 <td class="jd-descrcol" width="100%">The application is not licensed to the user.</td> 830 </tr> 831 832 833 <tr class=" api apilevel-" > 834 <td class="jd-typecol">int</td> 835 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#NETWORK_ERROR">NETWORK_ERROR</a></td> 836 <td class="jd-descrcol" width="100%">A network error occurred.</td> 837 </tr> 838 839 840 <tr class="alt-color api apilevel-" > 841 <td class="jd-typecol">int</td> 842 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#RESOLUTION_REQUIRED">RESOLUTION_REQUIRED</a></td> 843 <td class="jd-descrcol" width="100%">Completing the connection requires some form of resolution.</td> 844 </tr> 845 846 847 <tr class=" api apilevel-" > 848 <td class="jd-typecol">int</td> 849 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SERVICE_DISABLED">SERVICE_DISABLED</a></td> 850 <td class="jd-descrcol" width="100%">The installed version of Google Play services has been disabled on this device.</td> 851 </tr> 852 853 854 <tr class="alt-color api apilevel-" > 855 <td class="jd-typecol">int</td> 856 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SERVICE_INVALID">SERVICE_INVALID</a></td> 857 <td class="jd-descrcol" width="100%">The version of the Google Play services installed on this device is not authentic.</td> 858 </tr> 859 860 861 <tr class=" api apilevel-" > 862 <td class="jd-typecol">int</td> 863 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SERVICE_MISSING">SERVICE_MISSING</a></td> 864 <td class="jd-descrcol" width="100%">Google Play services is missing on this device.</td> 865 </tr> 866 867 868 <tr class="alt-color api apilevel-" > 869 <td class="jd-typecol">int</td> 870 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SERVICE_VERSION_UPDATE_REQUIRED">SERVICE_VERSION_UPDATE_REQUIRED</a></td> 871 <td class="jd-descrcol" width="100%">The installed version of Google Play services is out of date.</td> 872 </tr> 873 874 875 <tr class=" api apilevel-" > 876 <td class="jd-typecol">int</td> 877 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SIGN_IN_REQUIRED">SIGN_IN_REQUIRED</a></td> 878 <td class="jd-descrcol" width="100%">The client attempted to connect to the service but the user is not 879 signed in.</td> 880 </tr> 881 882 883 <tr class="alt-color api apilevel-" > 884 <td class="jd-typecol">int</td> 885 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SUCCESS">SUCCESS</a></td> 886 <td class="jd-descrcol" width="100%">The connection was successful.</td> 887 </tr> 888 889 890 891</table> 892 893 894 895 896 897 898 899 900 901 902 903 904<!-- ======== CONSTRUCTOR SUMMARY ======== --> 905<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> 906 907 908 909 910 <tr class="alt-color api apilevel-" > 911 <td class="jd-typecol"><nobr> 912 913 914 915 916 917 </nobr> 918 </td> 919 <td class="jd-linkcol" width="100%"><nobr> 920 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#ConnectionResult(int, android.app.PendingIntent)">ConnectionResult</a></span>(int statusCode, PendingIntent pendingIntent)</nobr> 921 922 <div class="jd-descrdiv">Creates a connection result.</div> 923 924 </td></tr> 925 926 927 928</table> 929 930 931 932 933 934 935<!-- ========== METHOD SUMMARY =========== --> 936<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> 937 938 939 940 941 <tr class="alt-color api apilevel-" > 942 <td class="jd-typecol"><nobr> 943 944 945 946 947 948 int</nobr> 949 </td> 950 <td class="jd-linkcol" width="100%"><nobr> 951 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#getErrorCode()">getErrorCode</a></span>()</nobr> 952 953 <div class="jd-descrdiv">Indicates the type of error that interrupted connection.</div> 954 955 </td></tr> 956 957 958 959 <tr class=" api apilevel-" > 960 <td class="jd-typecol"><nobr> 961 962 963 964 965 966 PendingIntent</nobr> 967 </td> 968 <td class="jd-linkcol" width="100%"><nobr> 969 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#getResolution()">getResolution</a></span>()</nobr> 970 971 <div class="jd-descrdiv">A pending intent to resolve the connection failure.</div> 972 973 </td></tr> 974 975 976 977 <tr class="alt-color api apilevel-" > 978 <td class="jd-typecol"><nobr> 979 980 981 982 983 984 boolean</nobr> 985 </td> 986 <td class="jd-linkcol" width="100%"><nobr> 987 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#hasResolution()">hasResolution</a></span>()</nobr> 988 989 <div class="jd-descrdiv">Returns true if calling <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult(android.app.Activity, int)">startResolutionForResult(Activity, int)</a></code> 990 will start any intents requiring user interaction.</div> 991 992 </td></tr> 993 994 995 996 <tr class=" api apilevel-" > 997 <td class="jd-typecol"><nobr> 998 999 1000 1001 1002 1003 boolean</nobr> 1004 </td> 1005 <td class="jd-linkcol" width="100%"><nobr> 1006 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#isSuccess()">isSuccess</a></span>()</nobr> 1007 1008 <div class="jd-descrdiv">Returns true if the connection was successful.</div> 1009 1010 </td></tr> 1011 1012 1013 1014 <tr class="alt-color api apilevel-" > 1015 <td class="jd-typecol"><nobr> 1016 1017 1018 1019 1020 1021 void</nobr> 1022 </td> 1023 <td class="jd-linkcol" width="100%"><nobr> 1024 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult(android.app.Activity, int)">startResolutionForResult</a></span>(Activity activity, int requestCode)</nobr> 1025 1026 <div class="jd-descrdiv">Resolves an error by starting any intents requiring user 1027 interaction.</div> 1028 1029 </td></tr> 1030 1031 1032 1033 <tr class=" api apilevel-" > 1034 <td class="jd-typecol"><nobr> 1035 1036 1037 1038 1039 1040 String</nobr> 1041 </td> 1042 <td class="jd-linkcol" width="100%"><nobr> 1043 <span class="sympad"><a href="/reference/com/google/android/gms/common/ConnectionResult.html#toString()">toString</a></span>()</nobr> 1044 1045 </td></tr> 1046 1047 1048 1049</table> 1050 1051 1052 1053 1054 1055 1056 1057<!-- ========== METHOD SUMMARY =========== --> 1058<table id="inhmethods" class="jd-sumtable"><tr><th> 1059 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> 1060 <div style="clear:left;">Inherited Methods</div></th></tr> 1061 1062 1063<tr class="api apilevel-" > 1064<td colspan="12"> 1065 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 1066 ><img id="inherited-methods-java.lang.Object-trigger" 1067 src="/assets/images/triangle-closed.png" 1068 class="jd-expando-trigger-img" /></a> 1069From class 1070 1071 java.lang.Object 1072 1073<div id="inherited-methods-java.lang.Object"> 1074 <div id="inherited-methods-java.lang.Object-list" 1075 class="jd-inheritedlinks"> 1076 </div> 1077 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 1078 <table class="jd-sumtable-expando"> 1079 1080 1081 1082 1083 <tr class="alt-color api apilevel-" > 1084 <td class="jd-typecol"><nobr> 1085 1086 1087 1088 1089 1090 Object</nobr> 1091 </td> 1092 <td class="jd-linkcol" width="100%"><nobr> 1093 <span class="sympad">clone</span>()</nobr> 1094 1095 </td></tr> 1096 1097 1098 1099 <tr class=" api apilevel-" > 1100 <td class="jd-typecol"><nobr> 1101 1102 1103 1104 1105 1106 boolean</nobr> 1107 </td> 1108 <td class="jd-linkcol" width="100%"><nobr> 1109 <span class="sympad">equals</span>(Object arg0)</nobr> 1110 1111 </td></tr> 1112 1113 1114 1115 <tr class="alt-color api apilevel-" > 1116 <td class="jd-typecol"><nobr> 1117 1118 1119 1120 1121 1122 void</nobr> 1123 </td> 1124 <td class="jd-linkcol" width="100%"><nobr> 1125 <span class="sympad">finalize</span>()</nobr> 1126 1127 </td></tr> 1128 1129 1130 1131 <tr class=" api apilevel-" > 1132 <td class="jd-typecol"><nobr> 1133 1134 1135 final 1136 1137 1138 Class<?></nobr> 1139 </td> 1140 <td class="jd-linkcol" width="100%"><nobr> 1141 <span class="sympad">getClass</span>()</nobr> 1142 1143 </td></tr> 1144 1145 1146 1147 <tr class="alt-color api apilevel-" > 1148 <td class="jd-typecol"><nobr> 1149 1150 1151 1152 1153 1154 int</nobr> 1155 </td> 1156 <td class="jd-linkcol" width="100%"><nobr> 1157 <span class="sympad">hashCode</span>()</nobr> 1158 1159 </td></tr> 1160 1161 1162 1163 <tr class=" api apilevel-" > 1164 <td class="jd-typecol"><nobr> 1165 1166 1167 final 1168 1169 1170 void</nobr> 1171 </td> 1172 <td class="jd-linkcol" width="100%"><nobr> 1173 <span class="sympad">notify</span>()</nobr> 1174 1175 </td></tr> 1176 1177 1178 1179 <tr class="alt-color api apilevel-" > 1180 <td class="jd-typecol"><nobr> 1181 1182 1183 final 1184 1185 1186 void</nobr> 1187 </td> 1188 <td class="jd-linkcol" width="100%"><nobr> 1189 <span class="sympad">notifyAll</span>()</nobr> 1190 1191 </td></tr> 1192 1193 1194 1195 <tr class=" api apilevel-" > 1196 <td class="jd-typecol"><nobr> 1197 1198 1199 1200 1201 1202 String</nobr> 1203 </td> 1204 <td class="jd-linkcol" width="100%"><nobr> 1205 <span class="sympad">toString</span>()</nobr> 1206 1207 </td></tr> 1208 1209 1210 1211 <tr class="alt-color api apilevel-" > 1212 <td class="jd-typecol"><nobr> 1213 1214 1215 final 1216 1217 1218 void</nobr> 1219 </td> 1220 <td class="jd-linkcol" width="100%"><nobr> 1221 <span class="sympad">wait</span>()</nobr> 1222 1223 </td></tr> 1224 1225 1226 1227 <tr class=" api apilevel-" > 1228 <td class="jd-typecol"><nobr> 1229 1230 1231 final 1232 1233 1234 void</nobr> 1235 </td> 1236 <td class="jd-linkcol" width="100%"><nobr> 1237 <span class="sympad">wait</span>(long arg0, int arg1)</nobr> 1238 1239 </td></tr> 1240 1241 1242 1243 <tr class="alt-color api apilevel-" > 1244 <td class="jd-typecol"><nobr> 1245 1246 1247 final 1248 1249 1250 void</nobr> 1251 </td> 1252 <td class="jd-linkcol" width="100%"><nobr> 1253 <span class="sympad">wait</span>(long arg0)</nobr> 1254 1255 </td></tr> 1256 1257 1258</table> 1259 </div> 1260</div> 1261</td></tr> 1262 1263 1264</table> 1265 1266 1267</div><!-- jd-descr (summary) --> 1268 1269<!-- Details --> 1270 1271 1272 1273 1274 1275 1276 1277 1278<!-- XML Attributes --> 1279 1280 1281<!-- Enum Values --> 1282 1283 1284<!-- Constants --> 1285 1286 1287<!-- ========= ENUM CONSTANTS DETAIL ======== --> 1288<h2>Constants</h2> 1289 1290 1291 1292 1293<A NAME="DATE_INVALID"></A> 1294 1295<div class="jd-details api apilevel-"> 1296 <h4 class="jd-details-title"> 1297 <span class="normal"> 1298 public 1299 static 1300 final 1301 int 1302 </span> 1303 DATE_INVALID 1304 </h4> 1305 <div class="api-level"> 1306 1307 1308 1309 1310 </div> 1311 <div class="jd-details-descr"> 1312 1313 <div class="jd-tagdata jd-tagdescr"><p>The device date is likely set incorrectly. 1314 This error is recoverable by the user updating the date. 1315</p></div> 1316 1317 1318 <div class="jd-tagdata"> 1319 <span class="jd-tagtitle">Constant Value: </span> 1320 <span> 1321 1322 12 1323 (0x0000000c) 1324 1325 </span> 1326 </div> 1327 1328 </div> 1329</div> 1330 1331 1332 1333<A NAME="DEVELOPER_ERROR"></A> 1334 1335<div class="jd-details api apilevel-"> 1336 <h4 class="jd-details-title"> 1337 <span class="normal"> 1338 public 1339 static 1340 final 1341 int 1342 </span> 1343 DEVELOPER_ERROR 1344 </h4> 1345 <div class="api-level"> 1346 1347 1348 1349 1350 </div> 1351 <div class="jd-details-descr"> 1352 1353 <div class="jd-tagdata jd-tagdescr"><p>The application is misconfigured. This error is not recoverable and will be treated as fatal. 1354 The developer should look at the logs after this to determine more actionable information. 1355</p></div> 1356 1357 1358 <div class="jd-tagdata"> 1359 <span class="jd-tagtitle">Constant Value: </span> 1360 <span> 1361 1362 10 1363 (0x0000000a) 1364 1365 </span> 1366 </div> 1367 1368 </div> 1369</div> 1370 1371 1372 1373<A NAME="INTERNAL_ERROR"></A> 1374 1375<div class="jd-details api apilevel-"> 1376 <h4 class="jd-details-title"> 1377 <span class="normal"> 1378 public 1379 static 1380 final 1381 int 1382 </span> 1383 INTERNAL_ERROR 1384 </h4> 1385 <div class="api-level"> 1386 1387 1388 1389 1390 </div> 1391 <div class="jd-details-descr"> 1392 1393 <div class="jd-tagdata jd-tagdescr"><p>An internal error occurred. Retrying should resolve the problem. 1394</p></div> 1395 1396 1397 <div class="jd-tagdata"> 1398 <span class="jd-tagtitle">Constant Value: </span> 1399 <span> 1400 1401 8 1402 (0x00000008) 1403 1404 </span> 1405 </div> 1406 1407 </div> 1408</div> 1409 1410 1411 1412<A NAME="INVALID_ACCOUNT"></A> 1413 1414<div class="jd-details api apilevel-"> 1415 <h4 class="jd-details-title"> 1416 <span class="normal"> 1417 public 1418 static 1419 final 1420 int 1421 </span> 1422 INVALID_ACCOUNT 1423 </h4> 1424 <div class="api-level"> 1425 1426 1427 1428 1429 </div> 1430 <div class="jd-details-descr"> 1431 1432 <div class="jd-tagdata jd-tagdescr"><p>The client attempted to connect to the service with an invalid account name 1433 specified. 1434</p></div> 1435 1436 1437 <div class="jd-tagdata"> 1438 <span class="jd-tagtitle">Constant Value: </span> 1439 <span> 1440 1441 5 1442 (0x00000005) 1443 1444 </span> 1445 </div> 1446 1447 </div> 1448</div> 1449 1450 1451 1452<A NAME="LICENSE_CHECK_FAILED"></A> 1453 1454<div class="jd-details api apilevel-"> 1455 <h4 class="jd-details-title"> 1456 <span class="normal"> 1457 public 1458 static 1459 final 1460 int 1461 </span> 1462 LICENSE_CHECK_FAILED 1463 </h4> 1464 <div class="api-level"> 1465 1466 1467 1468 1469 </div> 1470 <div class="jd-details-descr"> 1471 1472 <div class="jd-tagdata jd-tagdescr"><p>The application is not licensed to the user. This error is not recoverable and will be 1473 treated as fatal. 1474</p></div> 1475 1476 1477 <div class="jd-tagdata"> 1478 <span class="jd-tagtitle">Constant Value: </span> 1479 <span> 1480 1481 11 1482 (0x0000000b) 1483 1484 </span> 1485 </div> 1486 1487 </div> 1488</div> 1489 1490 1491 1492<A NAME="NETWORK_ERROR"></A> 1493 1494<div class="jd-details api apilevel-"> 1495 <h4 class="jd-details-title"> 1496 <span class="normal"> 1497 public 1498 static 1499 final 1500 int 1501 </span> 1502 NETWORK_ERROR 1503 </h4> 1504 <div class="api-level"> 1505 1506 1507 1508 1509 </div> 1510 <div class="jd-details-descr"> 1511 1512 <div class="jd-tagdata jd-tagdescr"><p>A network error occurred. Retrying should resolve the problem. 1513</p></div> 1514 1515 1516 <div class="jd-tagdata"> 1517 <span class="jd-tagtitle">Constant Value: </span> 1518 <span> 1519 1520 7 1521 (0x00000007) 1522 1523 </span> 1524 </div> 1525 1526 </div> 1527</div> 1528 1529 1530 1531<A NAME="RESOLUTION_REQUIRED"></A> 1532 1533<div class="jd-details api apilevel-"> 1534 <h4 class="jd-details-title"> 1535 <span class="normal"> 1536 public 1537 static 1538 final 1539 int 1540 </span> 1541 RESOLUTION_REQUIRED 1542 </h4> 1543 <div class="api-level"> 1544 1545 1546 1547 1548 </div> 1549 <div class="jd-details-descr"> 1550 1551 <div class="jd-tagdata jd-tagdescr"><p>Completing the connection requires some form of resolution. A resolution will be available 1552 to be started with <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult(android.app.Activity, int)">startResolutionForResult(Activity, int)</a></code>. 1553 If the result returned is <code><a href="/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></code>, then further attempts to connect 1554 should either complete or continue on to the next issue that needs to be resolved. 1555</p></div> 1556 1557 1558 <div class="jd-tagdata"> 1559 <span class="jd-tagtitle">Constant Value: </span> 1560 <span> 1561 1562 6 1563 (0x00000006) 1564 1565 </span> 1566 </div> 1567 1568 </div> 1569</div> 1570 1571 1572 1573<A NAME="SERVICE_DISABLED"></A> 1574 1575<div class="jd-details api apilevel-"> 1576 <h4 class="jd-details-title"> 1577 <span class="normal"> 1578 public 1579 static 1580 final 1581 int 1582 </span> 1583 SERVICE_DISABLED 1584 </h4> 1585 <div class="api-level"> 1586 1587 1588 1589 1590 </div> 1591 <div class="jd-details-descr"> 1592 1593 <div class="jd-tagdata jd-tagdescr"><p>The installed version of Google Play services has been disabled on this device. 1594 The calling activity should pass this error code to 1595 <code><a href="/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#getErrorDialog(int, android.app.Activity, int)">getErrorDialog(int, Activity, int)</a></code> to get a localized error dialog 1596 that will resolve the error when shown. 1597</p></div> 1598 1599 1600 <div class="jd-tagdata"> 1601 <span class="jd-tagtitle">Constant Value: </span> 1602 <span> 1603 1604 3 1605 (0x00000003) 1606 1607 </span> 1608 </div> 1609 1610 </div> 1611</div> 1612 1613 1614 1615<A NAME="SERVICE_INVALID"></A> 1616 1617<div class="jd-details api apilevel-"> 1618 <h4 class="jd-details-title"> 1619 <span class="normal"> 1620 public 1621 static 1622 final 1623 int 1624 </span> 1625 SERVICE_INVALID 1626 </h4> 1627 <div class="api-level"> 1628 1629 1630 1631 1632 </div> 1633 <div class="jd-details-descr"> 1634 1635 <div class="jd-tagdata jd-tagdescr"><p>The version of the Google Play services installed on this device is not authentic. 1636</p></div> 1637 1638 1639 <div class="jd-tagdata"> 1640 <span class="jd-tagtitle">Constant Value: </span> 1641 <span> 1642 1643 9 1644 (0x00000009) 1645 1646 </span> 1647 </div> 1648 1649 </div> 1650</div> 1651 1652 1653 1654<A NAME="SERVICE_MISSING"></A> 1655 1656<div class="jd-details api apilevel-"> 1657 <h4 class="jd-details-title"> 1658 <span class="normal"> 1659 public 1660 static 1661 final 1662 int 1663 </span> 1664 SERVICE_MISSING 1665 </h4> 1666 <div class="api-level"> 1667 1668 1669 1670 1671 </div> 1672 <div class="jd-details-descr"> 1673 1674 <div class="jd-tagdata jd-tagdescr"><p>Google Play services is missing on this device. 1675 The calling activity should pass this error code to 1676 <code><a href="/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#getErrorDialog(int, android.app.Activity, int)">getErrorDialog(int, Activity, int)</a></code> to get a localized error dialog 1677 that will resolve the error when shown. 1678</p></div> 1679 1680 1681 <div class="jd-tagdata"> 1682 <span class="jd-tagtitle">Constant Value: </span> 1683 <span> 1684 1685 1 1686 (0x00000001) 1687 1688 </span> 1689 </div> 1690 1691 </div> 1692</div> 1693 1694 1695 1696<A NAME="SERVICE_VERSION_UPDATE_REQUIRED"></A> 1697 1698<div class="jd-details api apilevel-"> 1699 <h4 class="jd-details-title"> 1700 <span class="normal"> 1701 public 1702 static 1703 final 1704 int 1705 </span> 1706 SERVICE_VERSION_UPDATE_REQUIRED 1707 </h4> 1708 <div class="api-level"> 1709 1710 1711 1712 1713 </div> 1714 <div class="jd-details-descr"> 1715 1716 <div class="jd-tagdata jd-tagdescr"><p>The installed version of Google Play services is out of date. 1717 The calling activity should pass this error code to 1718 <code><a href="/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#getErrorDialog(int, android.app.Activity, int)">getErrorDialog(int, Activity, int)</a></code> to get a localized error dialog 1719 that will resolve the error when shown. 1720</p></div> 1721 1722 1723 <div class="jd-tagdata"> 1724 <span class="jd-tagtitle">Constant Value: </span> 1725 <span> 1726 1727 2 1728 (0x00000002) 1729 1730 </span> 1731 </div> 1732 1733 </div> 1734</div> 1735 1736 1737 1738<A NAME="SIGN_IN_REQUIRED"></A> 1739 1740<div class="jd-details api apilevel-"> 1741 <h4 class="jd-details-title"> 1742 <span class="normal"> 1743 public 1744 static 1745 final 1746 int 1747 </span> 1748 SIGN_IN_REQUIRED 1749 </h4> 1750 <div class="api-level"> 1751 1752 1753 1754 1755 </div> 1756 <div class="jd-details-descr"> 1757 1758 <div class="jd-tagdata jd-tagdescr"><p>The client attempted to connect to the service but the user is not 1759 signed in. The client may choose to continue without using the API or it 1760 may call <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult(android.app.Activity, int)">startResolutionForResult(Activity, int)</a></code> to 1761 prompt the user to sign in. After the sign in 1762 activity returns with <code><a href="/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></code> further attempts to connect 1763 should succeed. 1764</p></div> 1765 1766 1767 <div class="jd-tagdata"> 1768 <span class="jd-tagtitle">Constant Value: </span> 1769 <span> 1770 1771 4 1772 (0x00000004) 1773 1774 </span> 1775 </div> 1776 1777 </div> 1778</div> 1779 1780 1781 1782<A NAME="SUCCESS"></A> 1783 1784<div class="jd-details api apilevel-"> 1785 <h4 class="jd-details-title"> 1786 <span class="normal"> 1787 public 1788 static 1789 final 1790 int 1791 </span> 1792 SUCCESS 1793 </h4> 1794 <div class="api-level"> 1795 1796 1797 1798 1799 </div> 1800 <div class="jd-details-descr"> 1801 1802 <div class="jd-tagdata jd-tagdescr"><p>The connection was successful. 1803</p></div> 1804 1805 1806 <div class="jd-tagdata"> 1807 <span class="jd-tagtitle">Constant Value: </span> 1808 <span> 1809 1810 0 1811 (0x00000000) 1812 1813 </span> 1814 </div> 1815 1816 </div> 1817</div> 1818 1819 1820 1821 1822<!-- Fields --> 1823 1824 1825<!-- Public ctors --> 1826 1827 1828<!-- ========= CONSTRUCTOR DETAIL ======== --> 1829<h2>Public Constructors</h2> 1830 1831 1832 1833<A NAME="ConnectionResult(int, android.app.PendingIntent)"></A> 1834 1835<div class="jd-details api apilevel-"> 1836 <h4 class="jd-details-title"> 1837 <span class="normal"> 1838 public 1839 1840 1841 1842 1843 1844 </span> 1845 <span class="sympad">ConnectionResult</span> 1846 <span class="normal">(int statusCode, PendingIntent pendingIntent)</span> 1847 </h4> 1848 <div class="api-level"> 1849 <div></div> 1850 1851 1852 1853 </div> 1854 <div class="jd-details-descr"> 1855 1856 <div class="jd-tagdata jd-tagdescr"><p>Creates a connection result.</p></div> 1857 <div class="jd-tagdata"> 1858 <h5 class="jd-tagtitle">Parameters</h5> 1859 <table class="jd-tagtable"> 1860 <tr> 1861 <th>statusCode</td> 1862 <td>The status code.</td> 1863 </tr> 1864 <tr> 1865 <th>pendingIntent</td> 1866 <td>A pending intent that will resolve the issue when started, or null. 1867</td> 1868 </tr> 1869 </table> 1870 </div> 1871 1872 </div> 1873</div> 1874 1875 1876 1877 1878 1879<!-- ========= CONSTRUCTOR DETAIL ======== --> 1880<!-- Protected ctors --> 1881 1882 1883 1884<!-- ========= METHOD DETAIL ======== --> 1885<!-- Public methdos --> 1886 1887<h2>Public Methods</h2> 1888 1889 1890 1891<A NAME="getErrorCode()"></A> 1892 1893<div class="jd-details api apilevel-"> 1894 <h4 class="jd-details-title"> 1895 <span class="normal"> 1896 public 1897 1898 1899 1900 1901 int 1902 </span> 1903 <span class="sympad">getErrorCode</span> 1904 <span class="normal">()</span> 1905 </h4> 1906 <div class="api-level"> 1907 <div></div> 1908 1909 1910 1911 </div> 1912 <div class="jd-details-descr"> 1913 1914 <div class="jd-tagdata jd-tagdescr"><p>Indicates the type of error that interrupted connection.</p></div> 1915 <div class="jd-tagdata"> 1916 <h5 class="jd-tagtitle">Returns</h5> 1917 <ul class="nolist"><li>the error code, or <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SUCCESS">SUCCESS</a></code> if no error occurred. 1918</li></ul> 1919 </div> 1920 1921 </div> 1922</div> 1923 1924 1925<A NAME="getResolution()"></A> 1926 1927<div class="jd-details api apilevel-"> 1928 <h4 class="jd-details-title"> 1929 <span class="normal"> 1930 public 1931 1932 1933 1934 1935 PendingIntent 1936 </span> 1937 <span class="sympad">getResolution</span> 1938 <span class="normal">()</span> 1939 </h4> 1940 <div class="api-level"> 1941 <div></div> 1942 1943 1944 1945 </div> 1946 <div class="jd-details-descr"> 1947 1948 <div class="jd-tagdata jd-tagdescr"><p>A pending intent to resolve the connection failure. This intent can be started with 1949 <code><a href="/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int)</a></code> 1950 to present UI to solve the issue.</p></div> 1951 <div class="jd-tagdata"> 1952 <h5 class="jd-tagtitle">Returns</h5> 1953 <ul class="nolist"><li>The pending intent to resolve the connection failure. 1954</li></ul> 1955 </div> 1956 1957 </div> 1958</div> 1959 1960 1961<A NAME="hasResolution()"></A> 1962 1963<div class="jd-details api apilevel-"> 1964 <h4 class="jd-details-title"> 1965 <span class="normal"> 1966 public 1967 1968 1969 1970 1971 boolean 1972 </span> 1973 <span class="sympad">hasResolution</span> 1974 <span class="normal">()</span> 1975 </h4> 1976 <div class="api-level"> 1977 <div></div> 1978 1979 1980 1981 </div> 1982 <div class="jd-details-descr"> 1983 1984 <div class="jd-tagdata jd-tagdescr"><p>Returns true if calling <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult(android.app.Activity, int)">startResolutionForResult(Activity, int)</a></code> 1985 will start any intents requiring user interaction.</p></div> 1986 <div class="jd-tagdata"> 1987 <h5 class="jd-tagtitle">Returns</h5> 1988 <ul class="nolist"><li>true if there is a resolution that can be started. 1989</li></ul> 1990 </div> 1991 1992 </div> 1993</div> 1994 1995 1996<A NAME="isSuccess()"></A> 1997 1998<div class="jd-details api apilevel-"> 1999 <h4 class="jd-details-title"> 2000 <span class="normal"> 2001 public 2002 2003 2004 2005 2006 boolean 2007 </span> 2008 <span class="sympad">isSuccess</span> 2009 <span class="normal">()</span> 2010 </h4> 2011 <div class="api-level"> 2012 <div></div> 2013 2014 2015 2016 </div> 2017 <div class="jd-details-descr"> 2018 2019 <div class="jd-tagdata jd-tagdescr"><p>Returns true if the connection was successful.</p></div> 2020 <div class="jd-tagdata"> 2021 <h5 class="jd-tagtitle">Returns</h5> 2022 <ul class="nolist"><li>true if the connection was successful, false if there was an error. 2023</li></ul> 2024 </div> 2025 2026 </div> 2027</div> 2028 2029 2030<A NAME="startResolutionForResult(android.app.Activity, int)"></A> 2031 2032<div class="jd-details api apilevel-"> 2033 <h4 class="jd-details-title"> 2034 <span class="normal"> 2035 public 2036 2037 2038 2039 2040 void 2041 </span> 2042 <span class="sympad">startResolutionForResult</span> 2043 <span class="normal">(Activity activity, int requestCode)</span> 2044 </h4> 2045 <div class="api-level"> 2046 <div></div> 2047 2048 2049 2050 </div> 2051 <div class="jd-details-descr"> 2052 2053 <div class="jd-tagdata jd-tagdescr"><p>Resolves an error by starting any intents requiring user 2054 interaction. See <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#SIGN_IN_REQUIRED">SIGN_IN_REQUIRED</a></code>, and 2055 <code><a href="/reference/com/google/android/gms/common/ConnectionResult.html#RESOLUTION_REQUIRED">RESOLUTION_REQUIRED</a></code>.</p></div> 2056 <div class="jd-tagdata"> 2057 <h5 class="jd-tagtitle">Parameters</h5> 2058 <table class="jd-tagtable"> 2059 <tr> 2060 <th>activity</td> 2061 <td>An Activity context to use to resolve the issue. The activity's 2062 onActivityResult method will be invoked after the user is done. If the 2063 resultCode is <code><a href="/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></code>, the application should try to 2064 connect again.</td> 2065 </tr> 2066 <tr> 2067 <th>requestCode</td> 2068 <td>The request code to pass to onActivityResult.</td> 2069 </tr> 2070 </table> 2071 </div> 2072 <div class="jd-tagdata"> 2073 <h5 class="jd-tagtitle">Throws</h5> 2074 <table class="jd-tagtable"> 2075 <tr> 2076 <th>IntentSender.SendIntentException</td> 2077 <td>If the resolution intent has been canceled or is 2078 no longer able to execute the request. 2079</td> 2080 </tr> 2081 </table> 2082 </div> 2083 2084 </div> 2085</div> 2086 2087 2088<A NAME="toString()"></A> 2089 2090<div class="jd-details api apilevel-"> 2091 <h4 class="jd-details-title"> 2092 <span class="normal"> 2093 public 2094 2095 2096 2097 2098 String 2099 </span> 2100 <span class="sympad">toString</span> 2101 <span class="normal">()</span> 2102 </h4> 2103 <div class="api-level"> 2104 <div></div> 2105 2106 2107 2108 </div> 2109 <div class="jd-details-descr"> 2110 2111 <div class="jd-tagdata jd-tagdescr"><p></p></div> 2112 2113 </div> 2114</div> 2115 2116 2117 2118 2119 2120<!-- ========= METHOD DETAIL ======== --> 2121 2122 2123 2124<!-- ========= END OF CLASS DATA ========= --> 2125<A NAME="navbar_top"></A> 2126 2127<div id="footer" class="wrap" > 2128 2129 2130 <div id="copyright"> 2131 2132 Except as noted, this content is licensed under <a 2133 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 2134 For details and restrictions, see the <a href="/license.html"> 2135 Content License</a>. 2136 </div> 2137 <div id="build_info"> 2138 2139<script src="/timestamp.js" type="text/javascript"></script> 2140<script>document.write(BUILD_TIMESTAMP)</script> 2141 2142 </div> 2143 2144 2145 <div id="footerlinks"> 2146 2147 <p> 2148 <a href="/about/index.html">About Android</a> | 2149 <a href="/legal.html">Legal</a> | 2150 <a href="/support.html">Support</a> 2151 </p> 2152 </div> 2153 2154</div> <!-- end footer --> 2155</div> <!-- jd-content --> 2156 2157</div><!-- end doc-content --> 2158 2159</div> <!-- end body-content --> 2160 2161 2162 2163 2164 2165 2166</body> 2167</html> 2168