Home | History | Annotate | Download | only in gcm
      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>GCMBroadcastReceiver | 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">&nbsp;</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    
    636   
    637   
    638   
    639   
    640 
    641 
    642 <div class="sum-details-links">
    643 
    644 Summary:
    645 
    646 
    647 
    648 
    649 
    650 
    651 
    652 
    653 
    654   <a href="#pubctors">Ctors</a>
    655   
    656 
    657 
    658 
    659   &#124; <a href="#pubmethods">Methods</a>
    660   
    661 
    662 
    663   &#124; <a href="#promethods">Protected Methods</a>
    664   
    665 
    666 
    667   &#124; <a href="#inhmethods">Inherited Methods</a>
    668 
    669 &#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
    670 
    671 </div><!-- end sum-details-links -->
    672 <div class="api-level">
    673   
    674   
    675   
    676 
    677 </div>
    678 </div><!-- end api-info-block -->
    679 
    680 
    681 <!-- ======== START OF CLASS DATA ======== -->
    682 
    683 <div id="jd-header">
    684     public
    685      
    686      
    687     
    688     class
    689 <h1 itemprop="name">GCMBroadcastReceiver</h1>
    690 
    691 
    692 
    693   
    694   
    695   
    696 
    697   
    698     extends BroadcastReceiver<br/>
    699   
    700   
    701   
    702 
    703   
    704   
    705   
    706 
    707 
    708 </div><!-- end header -->
    709 
    710 <div id="naMessage"></div>
    711 
    712 <div id="jd-content" class="api apilevel-">
    713 <table class="jd-inheritance-table">
    714 
    715 
    716     <tr>
    717          	
    718         <td colspan="3" class="jd-inheritance-class-cell">java.lang.Object</td>
    719     </tr>
    720     
    721 
    722     <tr>
    723         
    724             <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    725          	
    726         <td colspan="2" class="jd-inheritance-class-cell">android.content.BroadcastReceiver</td>
    727     </tr>
    728     
    729 
    730     <tr>
    731         
    732             <td class="jd-inheritance-space">&nbsp;</td>
    733         
    734             <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    735          	
    736         <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gcm.GCMBroadcastReceiver</td>
    737     </tr>
    738     
    739 
    740 </table>
    741 
    742 
    743 
    744 
    745 
    746 
    747 
    748 <div class="jd-descr">
    749 <p>
    750   <p class="caution"><strong>
    751       This class is deprecated.</strong><br/>
    752     Please use the <a href=
    753  "http://developer.android.com/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html">
    754  <code>GoogleCloudMessaging</code></a> API instead.
    755 
    756   </p>
    757 
    758 <h2>Class Overview</h2>
    759 <p itemprop="articleBody"><code><a href="/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a></code> that receives GCM messages and delivers them to
    760  an application-specific <code><a href="/reference/com/google/android/gcm/GCMBaseIntentService.html">GCMBaseIntentService</a></code> subclass.
    761  <p>
    762  By default, the <code><a href="/reference/com/google/android/gcm/GCMBaseIntentService.html">GCMBaseIntentService</a></code> class belongs to the application
    763  main package and is named
    764  <code><a href="/reference/com/google/android/gcm/GCMConstants.html#DEFAULT_INTENT_SERVICE_CLASS_NAME">DEFAULT_INTENT_SERVICE_CLASS_NAME</a></code>. To use a new class,
    765  the <code><a href="/reference/com/google/android/gcm/GCMBroadcastReceiver.html#getGCMIntentServiceClassName(android.content.Context)">getGCMIntentServiceClassName(Context)</a></code> must be overridden.</p>
    766 
    767 
    768 
    769 
    770 
    771 </div><!-- jd-descr -->
    772 
    773 
    774 
    775 
    776 
    777 
    778 
    779 
    780 
    781 
    782 
    783 
    784 
    785 
    786 
    787 
    788 <div class="jd-descr">
    789 
    790 
    791 <h2>Summary</h2>
    792 
    793 
    794 
    795 
    796 
    797 
    798 
    799 
    800 
    801 
    802 
    803 
    804 
    805 
    806 
    807 
    808 
    809 
    810 
    811 
    812 
    813 
    814 
    815 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
    816 <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>
    817 
    818 
    819 
    820 	 
    821     <tr class="alt-color api apilevel-" >
    822         <td class="jd-typecol"><nobr>
    823             
    824             
    825             
    826             
    827             
    828             </nobr>
    829         </td>
    830         <td class="jd-linkcol" width="100%"><nobr>
    831         <span class="sympad"><a href="/reference/com/google/android/gcm/GCMBroadcastReceiver.html#GCMBroadcastReceiver()">GCMBroadcastReceiver</a></span>()</nobr>
    832         
    833   </td></tr>
    834 
    835 
    836 
    837 </table>
    838 
    839 
    840 
    841 
    842 
    843 
    844 <!-- ========== METHOD SUMMARY =========== -->
    845 <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
    846 
    847 
    848 
    849 	 
    850     <tr class="alt-color api apilevel-" >
    851         <td class="jd-typecol"><nobr>
    852             
    853             
    854             final
    855             
    856             
    857             void</nobr>
    858         </td>
    859         <td class="jd-linkcol" width="100%"><nobr>
    860         <span class="sympad"><a href="/reference/com/google/android/gcm/GCMBroadcastReceiver.html#onReceive(android.content.Context, android.content.Intent)">onReceive</a></span>(Context context, Intent intent)</nobr>
    861         
    862   </td></tr>
    863 
    864 
    865 
    866 </table>
    867 
    868 
    869 
    870 
    871 <!-- ========== METHOD SUMMARY =========== -->
    872 <table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr>
    873 
    874 
    875 
    876 	 
    877     <tr class="alt-color api apilevel-" >
    878         <td class="jd-typecol"><nobr>
    879             
    880             
    881             
    882             
    883             
    884             String</nobr>
    885         </td>
    886         <td class="jd-linkcol" width="100%"><nobr>
    887         <span class="sympad"><a href="/reference/com/google/android/gcm/GCMBroadcastReceiver.html#getGCMIntentServiceClassName(android.content.Context)">getGCMIntentServiceClassName</a></span>(Context context)</nobr>
    888         
    889         <div class="jd-descrdiv">Gets the class name of the intent service that will handle GCM messages.</div>
    890   
    891   </td></tr>
    892 
    893 
    894 
    895 </table>
    896 
    897 
    898 
    899 
    900 
    901 <!-- ========== METHOD SUMMARY =========== -->
    902 <table id="inhmethods" class="jd-sumtable"><tr><th>
    903   <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
    904   <div style="clear:left;">Inherited Methods</div></th></tr>
    905 
    906 
    907 <tr class="api apilevel-" >
    908 <td colspan="12">
    909   <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.content.BroadcastReceiver" class="jd-expando-trigger closed"
    910           ><img id="inherited-methods-android.content.BroadcastReceiver-trigger"
    911           src="/assets/images/triangle-closed.png"
    912           class="jd-expando-trigger-img" /></a>
    913 From class
    914 
    915   android.content.BroadcastReceiver
    916 
    917 <div id="inherited-methods-android.content.BroadcastReceiver">
    918   <div id="inherited-methods-android.content.BroadcastReceiver-list"
    919         class="jd-inheritedlinks">
    920   </div>
    921   <div id="inherited-methods-android.content.BroadcastReceiver-summary" style="display: none;">
    922     <table class="jd-sumtable-expando">
    923     
    924 
    925 
    926 	 
    927     <tr class="alt-color api apilevel-" >
    928         <td class="jd-typecol"><nobr>
    929             
    930             
    931             final
    932             
    933             
    934             void</nobr>
    935         </td>
    936         <td class="jd-linkcol" width="100%"><nobr>
    937         <span class="sympad">abortBroadcast</span>()</nobr>
    938         
    939   </td></tr>
    940 
    941 
    942 	 
    943     <tr class=" api apilevel-" >
    944         <td class="jd-typecol"><nobr>
    945             
    946             
    947             final
    948             
    949             
    950             void</nobr>
    951         </td>
    952         <td class="jd-linkcol" width="100%"><nobr>
    953         <span class="sympad">clearAbortBroadcast</span>()</nobr>
    954         
    955   </td></tr>
    956 
    957 
    958 	 
    959     <tr class="alt-color api apilevel-" >
    960         <td class="jd-typecol"><nobr>
    961             
    962             
    963             final
    964             
    965             
    966             boolean</nobr>
    967         </td>
    968         <td class="jd-linkcol" width="100%"><nobr>
    969         <span class="sympad">getAbortBroadcast</span>()</nobr>
    970         
    971   </td></tr>
    972 
    973 
    974 	 
    975     <tr class=" api apilevel-" >
    976         <td class="jd-typecol"><nobr>
    977             
    978             
    979             final
    980             
    981             
    982             boolean</nobr>
    983         </td>
    984         <td class="jd-linkcol" width="100%"><nobr>
    985         <span class="sympad">getDebugUnregister</span>()</nobr>
    986         
    987   </td></tr>
    988 
    989 
    990 	 
    991     <tr class="alt-color api apilevel-" >
    992         <td class="jd-typecol"><nobr>
    993             
    994             
    995             final
    996             
    997             
    998             BroadcastReceiver.PendingResult</nobr>
    999         </td>
   1000         <td class="jd-linkcol" width="100%"><nobr>
   1001         <span class="sympad">getPendingResult</span>()</nobr>
   1002         
   1003   </td></tr>
   1004 
   1005 
   1006 	 
   1007     <tr class=" api apilevel-" >
   1008         <td class="jd-typecol"><nobr>
   1009             
   1010             
   1011             final
   1012             
   1013             
   1014             int</nobr>
   1015         </td>
   1016         <td class="jd-linkcol" width="100%"><nobr>
   1017         <span class="sympad">getResultCode</span>()</nobr>
   1018         
   1019   </td></tr>
   1020 
   1021 
   1022 	 
   1023     <tr class="alt-color api apilevel-" >
   1024         <td class="jd-typecol"><nobr>
   1025             
   1026             
   1027             final
   1028             
   1029             
   1030             String</nobr>
   1031         </td>
   1032         <td class="jd-linkcol" width="100%"><nobr>
   1033         <span class="sympad">getResultData</span>()</nobr>
   1034         
   1035   </td></tr>
   1036 
   1037 
   1038 	 
   1039     <tr class=" api apilevel-" >
   1040         <td class="jd-typecol"><nobr>
   1041             
   1042             
   1043             final
   1044             
   1045             
   1046             Bundle</nobr>
   1047         </td>
   1048         <td class="jd-linkcol" width="100%"><nobr>
   1049         <span class="sympad">getResultExtras</span>(boolean arg0)</nobr>
   1050         
   1051   </td></tr>
   1052 
   1053 
   1054 	 
   1055     <tr class="alt-color api apilevel-" >
   1056         <td class="jd-typecol"><nobr>
   1057             
   1058             
   1059             
   1060             
   1061             
   1062             int</nobr>
   1063         </td>
   1064         <td class="jd-linkcol" width="100%"><nobr>
   1065         <span class="sympad">getSendingUserId</span>()</nobr>
   1066         
   1067   </td></tr>
   1068 
   1069 
   1070 	 
   1071     <tr class=" api apilevel-" >
   1072         <td class="jd-typecol"><nobr>
   1073             
   1074             
   1075             final
   1076             
   1077             
   1078             BroadcastReceiver.PendingResult</nobr>
   1079         </td>
   1080         <td class="jd-linkcol" width="100%"><nobr>
   1081         <span class="sympad">goAsync</span>()</nobr>
   1082         
   1083   </td></tr>
   1084 
   1085 
   1086 	 
   1087     <tr class="alt-color api apilevel-" >
   1088         <td class="jd-typecol"><nobr>
   1089             
   1090             
   1091             final
   1092             
   1093             
   1094             boolean</nobr>
   1095         </td>
   1096         <td class="jd-linkcol" width="100%"><nobr>
   1097         <span class="sympad">isInitialStickyBroadcast</span>()</nobr>
   1098         
   1099   </td></tr>
   1100 
   1101 
   1102 	 
   1103     <tr class=" api apilevel-" >
   1104         <td class="jd-typecol"><nobr>
   1105             
   1106             
   1107             final
   1108             
   1109             
   1110             boolean</nobr>
   1111         </td>
   1112         <td class="jd-linkcol" width="100%"><nobr>
   1113         <span class="sympad">isOrderedBroadcast</span>()</nobr>
   1114         
   1115   </td></tr>
   1116 
   1117 
   1118 	 
   1119     <tr class="alt-color api apilevel-" >
   1120         <td class="jd-typecol"><nobr>
   1121             abstract
   1122             
   1123             
   1124             
   1125             
   1126             void</nobr>
   1127         </td>
   1128         <td class="jd-linkcol" width="100%"><nobr>
   1129         <span class="sympad">onReceive</span>(Context arg0, Intent arg1)</nobr>
   1130         
   1131   </td></tr>
   1132 
   1133 
   1134 	 
   1135     <tr class=" api apilevel-" >
   1136         <td class="jd-typecol"><nobr>
   1137             
   1138             
   1139             
   1140             
   1141             
   1142             IBinder</nobr>
   1143         </td>
   1144         <td class="jd-linkcol" width="100%"><nobr>
   1145         <span class="sympad">peekService</span>(Context arg0, Intent arg1)</nobr>
   1146         
   1147   </td></tr>
   1148 
   1149 
   1150 	 
   1151     <tr class="alt-color api apilevel-" >
   1152         <td class="jd-typecol"><nobr>
   1153             
   1154             
   1155             final
   1156             
   1157             
   1158             void</nobr>
   1159         </td>
   1160         <td class="jd-linkcol" width="100%"><nobr>
   1161         <span class="sympad">setDebugUnregister</span>(boolean arg0)</nobr>
   1162         
   1163   </td></tr>
   1164 
   1165 
   1166 	 
   1167     <tr class=" api apilevel-" >
   1168         <td class="jd-typecol"><nobr>
   1169             
   1170             
   1171             final
   1172             
   1173             
   1174             void</nobr>
   1175         </td>
   1176         <td class="jd-linkcol" width="100%"><nobr>
   1177         <span class="sympad">setOrderedHint</span>(boolean arg0)</nobr>
   1178         
   1179   </td></tr>
   1180 
   1181 
   1182 	 
   1183     <tr class="alt-color api apilevel-" >
   1184         <td class="jd-typecol"><nobr>
   1185             
   1186             
   1187             final
   1188             
   1189             
   1190             void</nobr>
   1191         </td>
   1192         <td class="jd-linkcol" width="100%"><nobr>
   1193         <span class="sympad">setPendingResult</span>(BroadcastReceiver.PendingResult arg0)</nobr>
   1194         
   1195   </td></tr>
   1196 
   1197 
   1198 	 
   1199     <tr class=" api apilevel-" >
   1200         <td class="jd-typecol"><nobr>
   1201             
   1202             
   1203             final
   1204             
   1205             
   1206             void</nobr>
   1207         </td>
   1208         <td class="jd-linkcol" width="100%"><nobr>
   1209         <span class="sympad">setResult</span>(int arg0, String arg1, Bundle arg2)</nobr>
   1210         
   1211   </td></tr>
   1212 
   1213 
   1214 	 
   1215     <tr class="alt-color api apilevel-" >
   1216         <td class="jd-typecol"><nobr>
   1217             
   1218             
   1219             final
   1220             
   1221             
   1222             void</nobr>
   1223         </td>
   1224         <td class="jd-linkcol" width="100%"><nobr>
   1225         <span class="sympad">setResultCode</span>(int arg0)</nobr>
   1226         
   1227   </td></tr>
   1228 
   1229 
   1230 	 
   1231     <tr class=" api apilevel-" >
   1232         <td class="jd-typecol"><nobr>
   1233             
   1234             
   1235             final
   1236             
   1237             
   1238             void</nobr>
   1239         </td>
   1240         <td class="jd-linkcol" width="100%"><nobr>
   1241         <span class="sympad">setResultData</span>(String arg0)</nobr>
   1242         
   1243   </td></tr>
   1244 
   1245 
   1246 	 
   1247     <tr class="alt-color api apilevel-" >
   1248         <td class="jd-typecol"><nobr>
   1249             
   1250             
   1251             final
   1252             
   1253             
   1254             void</nobr>
   1255         </td>
   1256         <td class="jd-linkcol" width="100%"><nobr>
   1257         <span class="sympad">setResultExtras</span>(Bundle arg0)</nobr>
   1258         
   1259   </td></tr>
   1260 
   1261 
   1262 </table>
   1263   </div>
   1264 </div>
   1265 </td></tr>
   1266 
   1267 
   1268 
   1269 <tr class="api apilevel-" >
   1270 <td colspan="12">
   1271   <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
   1272           ><img id="inherited-methods-java.lang.Object-trigger"
   1273           src="/assets/images/triangle-closed.png"
   1274           class="jd-expando-trigger-img" /></a>
   1275 From class
   1276 
   1277   java.lang.Object
   1278 
   1279 <div id="inherited-methods-java.lang.Object">
   1280   <div id="inherited-methods-java.lang.Object-list"
   1281         class="jd-inheritedlinks">
   1282   </div>
   1283   <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
   1284     <table class="jd-sumtable-expando">
   1285     
   1286 
   1287 
   1288 	 
   1289     <tr class="alt-color api apilevel-" >
   1290         <td class="jd-typecol"><nobr>
   1291             
   1292             
   1293             
   1294             
   1295             
   1296             Object</nobr>
   1297         </td>
   1298         <td class="jd-linkcol" width="100%"><nobr>
   1299         <span class="sympad">clone</span>()</nobr>
   1300         
   1301   </td></tr>
   1302 
   1303 
   1304 	 
   1305     <tr class=" api apilevel-" >
   1306         <td class="jd-typecol"><nobr>
   1307             
   1308             
   1309             
   1310             
   1311             
   1312             boolean</nobr>
   1313         </td>
   1314         <td class="jd-linkcol" width="100%"><nobr>
   1315         <span class="sympad">equals</span>(Object arg0)</nobr>
   1316         
   1317   </td></tr>
   1318 
   1319 
   1320 	 
   1321     <tr class="alt-color api apilevel-" >
   1322         <td class="jd-typecol"><nobr>
   1323             
   1324             
   1325             
   1326             
   1327             
   1328             void</nobr>
   1329         </td>
   1330         <td class="jd-linkcol" width="100%"><nobr>
   1331         <span class="sympad">finalize</span>()</nobr>
   1332         
   1333   </td></tr>
   1334 
   1335 
   1336 	 
   1337     <tr class=" api apilevel-" >
   1338         <td class="jd-typecol"><nobr>
   1339             
   1340             
   1341             final
   1342             
   1343             
   1344             Class&lt;?&gt;</nobr>
   1345         </td>
   1346         <td class="jd-linkcol" width="100%"><nobr>
   1347         <span class="sympad">getClass</span>()</nobr>
   1348         
   1349   </td></tr>
   1350 
   1351 
   1352 	 
   1353     <tr class="alt-color api apilevel-" >
   1354         <td class="jd-typecol"><nobr>
   1355             
   1356             
   1357             
   1358             
   1359             
   1360             int</nobr>
   1361         </td>
   1362         <td class="jd-linkcol" width="100%"><nobr>
   1363         <span class="sympad">hashCode</span>()</nobr>
   1364         
   1365   </td></tr>
   1366 
   1367 
   1368 	 
   1369     <tr class=" api apilevel-" >
   1370         <td class="jd-typecol"><nobr>
   1371             
   1372             
   1373             final
   1374             
   1375             
   1376             void</nobr>
   1377         </td>
   1378         <td class="jd-linkcol" width="100%"><nobr>
   1379         <span class="sympad">notify</span>()</nobr>
   1380         
   1381   </td></tr>
   1382 
   1383 
   1384 	 
   1385     <tr class="alt-color api apilevel-" >
   1386         <td class="jd-typecol"><nobr>
   1387             
   1388             
   1389             final
   1390             
   1391             
   1392             void</nobr>
   1393         </td>
   1394         <td class="jd-linkcol" width="100%"><nobr>
   1395         <span class="sympad">notifyAll</span>()</nobr>
   1396         
   1397   </td></tr>
   1398 
   1399 
   1400 	 
   1401     <tr class=" api apilevel-" >
   1402         <td class="jd-typecol"><nobr>
   1403             
   1404             
   1405             
   1406             
   1407             
   1408             String</nobr>
   1409         </td>
   1410         <td class="jd-linkcol" width="100%"><nobr>
   1411         <span class="sympad">toString</span>()</nobr>
   1412         
   1413   </td></tr>
   1414 
   1415 
   1416 	 
   1417     <tr class="alt-color api apilevel-" >
   1418         <td class="jd-typecol"><nobr>
   1419             
   1420             
   1421             final
   1422             
   1423             
   1424             void</nobr>
   1425         </td>
   1426         <td class="jd-linkcol" width="100%"><nobr>
   1427         <span class="sympad">wait</span>()</nobr>
   1428         
   1429   </td></tr>
   1430 
   1431 
   1432 	 
   1433     <tr class=" api apilevel-" >
   1434         <td class="jd-typecol"><nobr>
   1435             
   1436             
   1437             final
   1438             
   1439             
   1440             void</nobr>
   1441         </td>
   1442         <td class="jd-linkcol" width="100%"><nobr>
   1443         <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
   1444         
   1445   </td></tr>
   1446 
   1447 
   1448 	 
   1449     <tr class="alt-color api apilevel-" >
   1450         <td class="jd-typecol"><nobr>
   1451             
   1452             
   1453             final
   1454             
   1455             
   1456             void</nobr>
   1457         </td>
   1458         <td class="jd-linkcol" width="100%"><nobr>
   1459         <span class="sympad">wait</span>(long arg0)</nobr>
   1460         
   1461   </td></tr>
   1462 
   1463 
   1464 </table>
   1465   </div>
   1466 </div>
   1467 </td></tr>
   1468 
   1469 
   1470 </table>
   1471 
   1472 
   1473 </div><!-- jd-descr (summary) -->
   1474 
   1475 <!-- Details -->
   1476 
   1477 
   1478 
   1479 
   1480 
   1481 
   1482 
   1483 
   1484 <!-- XML Attributes -->
   1485 
   1486 
   1487 <!-- Enum Values -->
   1488 
   1489 
   1490 <!-- Constants -->
   1491 
   1492 
   1493 <!-- Fields -->
   1494 
   1495 
   1496 <!-- Public ctors -->
   1497 
   1498 
   1499 <!-- ========= CONSTRUCTOR DETAIL ======== -->
   1500 <h2>Public Constructors</h2>
   1501 
   1502 
   1503 
   1504 <A NAME="GCMBroadcastReceiver()"></A>
   1505 
   1506 <div class="jd-details api apilevel-"> 
   1507     <h4 class="jd-details-title">
   1508       <span class="normal">
   1509         public 
   1510          
   1511          
   1512          
   1513          
   1514         
   1515       </span>
   1516       <span class="sympad">GCMBroadcastReceiver</span>
   1517       <span class="normal">()</span>
   1518     </h4>
   1519       <div class="api-level">
   1520         <div></div>
   1521         
   1522   
   1523 
   1524       </div>
   1525     <div class="jd-details-descr">
   1526       
   1527   <div class="jd-tagdata jd-tagdescr"><p></p></div>
   1528 
   1529     </div>
   1530 </div>
   1531 
   1532 
   1533 
   1534 
   1535 
   1536 <!-- ========= CONSTRUCTOR DETAIL ======== -->
   1537 <!-- Protected ctors -->
   1538 
   1539 
   1540 
   1541 <!-- ========= METHOD DETAIL ======== -->
   1542 <!-- Public methdos -->
   1543 
   1544 <h2>Public Methods</h2>
   1545 
   1546 
   1547 
   1548 <A NAME="onReceive(android.content.Context, android.content.Intent)"></A>
   1549 
   1550 <div class="jd-details api apilevel-"> 
   1551     <h4 class="jd-details-title">
   1552       <span class="normal">
   1553         public 
   1554          
   1555         final 
   1556          
   1557          
   1558         void
   1559       </span>
   1560       <span class="sympad">onReceive</span>
   1561       <span class="normal">(Context context, Intent intent)</span>
   1562     </h4>
   1563       <div class="api-level">
   1564         <div></div>
   1565         
   1566   
   1567 
   1568       </div>
   1569     <div class="jd-details-descr">
   1570       
   1571   <div class="jd-tagdata jd-tagdescr"><p></p></div>
   1572 
   1573     </div>
   1574 </div>
   1575 
   1576 
   1577 
   1578 
   1579 
   1580 <!-- ========= METHOD DETAIL ======== -->
   1581 
   1582 <h2>Protected Methods</h2>
   1583 
   1584 
   1585 
   1586 <A NAME="getGCMIntentServiceClassName(android.content.Context)"></A>
   1587 
   1588 <div class="jd-details api apilevel-"> 
   1589     <h4 class="jd-details-title">
   1590       <span class="normal">
   1591         protected 
   1592          
   1593          
   1594          
   1595          
   1596         String
   1597       </span>
   1598       <span class="sympad">getGCMIntentServiceClassName</span>
   1599       <span class="normal">(Context context)</span>
   1600     </h4>
   1601       <div class="api-level">
   1602         <div></div>
   1603         
   1604   
   1605 
   1606       </div>
   1607     <div class="jd-details-descr">
   1608       
   1609   <div class="jd-tagdata jd-tagdescr"><p>Gets the class name of the intent service that will handle GCM messages.
   1610 </p></div>
   1611 
   1612     </div>
   1613 </div>
   1614 
   1615 
   1616 
   1617 
   1618 
   1619 <!-- ========= END OF CLASS DATA ========= -->
   1620 <A NAME="navbar_top"></A>
   1621 
   1622 <div id="footer" class="wrap" >
   1623         
   1624 
   1625   <div id="copyright">
   1626     
   1627   Except as noted, this content is licensed under <a
   1628   href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 
   1629   For details and restrictions, see the <a href="/license.html">
   1630   Content License</a>.
   1631   </div>
   1632   <div id="build_info">
   1633     
   1634 <script src="/timestamp.js" type="text/javascript"></script>
   1635 <script>document.write(BUILD_TIMESTAMP)</script>
   1636 
   1637   </div>
   1638 
   1639 
   1640   <div id="footerlinks">
   1641     
   1642   <p>
   1643     <a href="/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
   1644     <a href="/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
   1645     <a href="/support.html">Support</a>
   1646   </p>
   1647   </div>
   1648 
   1649 </div> <!-- end footer -->
   1650 </div> <!-- jd-content -->
   1651 
   1652 </div><!-- end doc-content -->
   1653 
   1654 </div> <!-- end body-content --> 
   1655 
   1656 
   1657 
   1658 
   1659 
   1660 
   1661 </body>
   1662 </html>
   1663