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