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>Package Index | Android Developers</title>
85
86<!-- STYLESHEETS -->
87<link rel="stylesheet"
88href="//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">
116  <a name="top"></a>
117
118<a name="top"></a>
119
120    <!-- Header -->
121    <div id="header">
122        <div class="wrap" id="header-wrap">
123          <div class="col-3 logo">
124          <a href="/index.html">
125            <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" />
126          </a>
127          <div class="btn-quicknav" id="btn-quicknav">
128          	<a href="#" class="arrow-inactive">Quicknav</a>
129			      <a href="#" class="arrow-active">Quicknav</a>
130          </div>
131          </div>
132            <ul class="nav-x col-9">
133                <li class="design">
134                  <a href="/design/index.html"
135                  zh-tw-lang="設計"
136                  zh-cn-lang="设计"
137                  ru-lang="Проектирование"
138                  ko-lang="디자인"
139                  ja-lang="設計"
140                  es-lang="Diseñar"
141                  >Design</a></li>
142                <li class="develop"><a href="/develop/index.html"
143                  zh-tw-lang="開發"
144                  zh-cn-lang="开发"
145                  ru-lang="Разработка"
146                  ko-lang="개발"
147                  ja-lang="開発"
148                  es-lang="Desarrollar"
149                  >Develop</a></li>
150                <li class="distribute last"><a href="/distribute/index.html"
151                  zh-tw-lang="發佈"
152                  zh-cn-lang="分发"
153                  ru-lang="Распространение"
154                  ko-lang="배포"
155                  ja-lang="配布"
156                  es-lang="Distribuir"
157                  >Distribute</a></li>
158            </ul>
159
160            <!-- New Search -->
161            <div class="menu-container">
162            <div class="moremenu">
163    <div id="more-btn"></div>
164  </div>
165  <div class="morehover" id="moremenu">
166    <div class="top"></div>
167    <div class="mid">
168      <div class="header">Links</div>
169      <ul>
170        <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
171        <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
172        <li><a href="/about/index.html">About Android</a></li>
173      </ul>
174      <div class="header">Android Sites</div>
175      <ul>
176        <li><a href="http://www.android.com">Android.com</a></li>
177        <li class="active"><a>Android Developers</a></li>
178        <li><a href="http://source.android.com">Android Open Source Project</a></li>
179      </ul>
180
181
182
183        <div class="header">Language</div>
184          <div id="language" class="locales">
185            <select name="language" onChange="changeLangPref(this.value, true)">
186                <option value="en">English</option>
187                <option value="es">Español</option>
188                <option value="ja">日本語</option>
189                <option value="ko">한국어</option>
190                <option value="ru">Русский</option>
191                <option value="zh-cn">中文 (中国)</option>
192                <option value="zh-tw">中文 (台灣)</option>
193            </select>
194          </div>
195        <script type="text/javascript">
196          <!--
197          loadLangPref();
198            //-->
199        </script>
200
201
202
203
204      <br class="clearfix" />
205    </div>
206    <div class="bottom"></div>
207  </div>
208  <div class="search" id="search-container">
209    <div class="search-inner">
210      <div id="search-btn"></div>
211      <div class="left"></div>
212      <form onsubmit="return submit_search()">
213        <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
214onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
215onkeydown="return search_changed(event, true, '/')"
216onkeyup="return search_changed(event, false, '/')" />
217      </form>
218      <div class="right"></div>
219        <a class="close hide">close</a>
220        <div class="left"></div>
221        <div class="right"></div>
222    </div>
223  </div>
224
225  <div class="search_filtered_wrapper reference">
226    <div class="suggest-card reference no-display">
227      <ul class="search_filtered">
228      </ul>
229    </div>
230  </div>
231
232  <div class="search_filtered_wrapper docs">
233    <div class="suggest-card dummy no-display">&nbsp;</div>
234    <div class="suggest-card develop no-display">
235      <ul class="search_filtered">
236      </ul>
237      <div class="child-card guides no-display">
238      </div>
239      <div class="child-card training no-display">
240      </div>
241    </div>
242    <div class="suggest-card design no-display">
243      <ul class="search_filtered">
244      </ul>
245    </div>
246    <div class="suggest-card distribute no-display">
247      <ul class="search_filtered">
248      </ul>
249    </div>
250  </div>
251
252  </div>
253  <!-- /New Search>
254
255
256          <!-- Expanded quicknav -->
257           <div id="quicknav" class="col-9">
258                <ul>
259                    <li class="design">
260                      <ul>
261                        <li><a href="/design/index.html">Get Started</a></li>
262                        <li><a href="/design/style/index.html">Style</a></li>
263                        <li><a href="/design/patterns/index.html">Patterns</a></li>
264                        <li><a href="/design/building-blocks/index.html">Building Blocks</a></li>
265                        <li><a href="/design/downloads/index.html">Downloads</a></li>
266                        <li><a href="/design/videos/index.html">Videos</a></li>
267                      </ul>
268                    </li>
269                    <li class="develop">
270                      <ul>
271                        <li><a href="/training/index.html"
272                          zh-tw-lang="訓練課程"
273                          zh-cn-lang="培训"
274                          ru-lang="Курсы"
275                          ko-lang="교육"
276                          ja-lang="トレーニング"
277                          es-lang="Capacitación"
278                          >Training</a></li>
279                        <li><a href="/guide/components/index.html"
280                          zh-tw-lang="API 指南"
281                          zh-cn-lang="API 指南"
282                          ru-lang="Руководства по API"
283                          ko-lang="API 가이드"
284                          ja-lang="API ガイド"
285                          es-lang="Guías de la API"
286                          >API Guides</a></li>
287                        <li><a href="/reference/packages.html"
288                          zh-tw-lang="參考資源"
289                          zh-cn-lang="参考"
290                          ru-lang="Справочник"
291                          ko-lang="참조문서"
292                          ja-lang="リファレンス"
293                          es-lang="Referencia"
294                          >Reference</a></li>
295                        <li><a href="/tools/index.html"
296                          zh-tw-lang="相關工具"
297                          zh-cn-lang="工具"
298                          ru-lang="Инструменты"
299                          ko-lang="도구"
300                          ja-lang="ツール"
301                          es-lang="Herramientas"
302                          >Tools</a>
303                          <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul>
304                        </li>
305                        <li><a href="/google/index.html">Google Services</a>
306                        </li>
307                      </ul>
308                    </li>
309                    <li class="distribute last">
310                      <ul>
311                        <li><a href="/distribute/index.html">Google Play</a></li>
312                        <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li>
313                        <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li>
314                        <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li>
315                        <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li>
316                        <li><a href="/distribute/open.html">Open Distribution</a></li>
317                      </ul>
318                    </li>
319                </ul>
320          </div>
321          <!-- /Expanded quicknav -->
322        </div>
323    </div>
324    <!-- /Header -->
325
326
327  <div id="searchResults" class="wrap" style="display:none;">
328          <h2 id="searchTitle">Results</h2>
329          <div id="leftSearchControl" class="search-control">Loading...</div>
330  </div>
331
332
333
334    <!-- Secondary x-nav -->
335    <div id="nav-x">
336        <div class="wrap">
337            <ul class="nav-x col-9 develop" style="width:100%">
338                <li class="training"><a href="/training/index.html"
339                  zh-tw-lang="訓練課程"
340                  zh-cn-lang="培训"
341                  ru-lang="Курсы"
342                  ko-lang="교육"
343                  ja-lang="トレーニング"
344                  es-lang="Capacitación"
345                  >Training</a></li>
346                <li class="guide"><a href="/guide/components/index.html"
347                  zh-tw-lang="API 指南"
348                  zh-cn-lang="API 指南"
349                  ru-lang="Руководства по API"
350                  ko-lang="API 가이드"
351                  ja-lang="API ガイド"
352                  es-lang="Guías de la API"
353                  >API Guides</a></li>
354                <li class="reference"><a href="/reference/packages.html"
355                  zh-tw-lang="參考資源"
356                  zh-cn-lang="参考"
357                  ru-lang="Справочник"
358                  ko-lang="참조문서"
359                  ja-lang="リファレンス"
360                  es-lang="Referencia"
361                  >Reference</a></li>
362                <li class="tools"><a href="/tools/index.html"
363                  zh-tw-lang="相關工具"
364                  zh-cn-lang="工具"
365                  ru-lang="Инструменты"
366                  ko-lang="도구"
367                  ja-lang="ツール"
368                  es-lang="Herramientas"
369                  >Tools</a></li>
370                <li class="google"><a href="/google/index.html"
371                  >Google Services</a>
372                </li>
373            </ul>
374        </div>
375
376    </div>
377    <!-- /Sendondary x-nav -->
378
379
380
381
382
383
384
385
386
387  <div class="wrap clearfix" id="body-content">
388    <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
389      <div id="devdoc-nav" class="scroll-pane">
390<a class="totop" href="#top" data-g-event="left-nav-top">to top</a>
391
392
393
394<ul id="nav">
395
396  <li class="nav-section">
397    <div class="nav-section-header empty"><a href="/google/index.html">
398          <span class="en">Overview</span>
399      </a></div>
400  </li>
401
402  <li class="nav-section">
403    <div class="nav-section-header empty"><a href="/google/play-services/games.html">
404          <span class="en">Games</span>
405      </a></div>
406  </li>
407  <li class="nav-section">
408    <div class="nav-section-header empty"><a href="/google/play-services/location.html">
409          <span class="en">Location</span>
410      </a></div>
411  </li>
412  <li class="nav-section">
413    <div class="nav-section-header empty"><a href="/google/play-services/plus.html">
414          <span class="en">Google+</span>
415                </a></div>
416  </li>
417  <li class="nav-section">
418    <div class="nav-section-header empty"><a href="/google/play-services/maps.html">
419          <span class="en">Google Maps</span>
420      </a></div>
421  </li>
422  <li class="nav-section">
423    <div class="nav-section-header empty"><a href="/google/play-services/auth.html">
424          <span class="en">Authorization</span>
425      </a></div>
426  </li>
427
428
429
430  <li class="nav-section">
431    <div class="nav-section-header"><a href="/google/play-services/index.html">
432      <span class="en">Google Play Services</span></a>
433    </div>
434    <ul>
435      <li><a href="/google/play-services/setup.html">
436          <span class="en">Setup</span></a>
437      </li>
438      <li id="gms-tree-list" class="nav-section">
439        <div class="nav-section-header">
440          <a href="/reference/gms-packages.html">
441            <span class="en">Reference</span>
442          </a>
443        <div>
444      </li>
445    </ul>
446  </li>
447
448
449  <li class="nav-section">
450    <div class="nav-section-header"><a href="/google/play/billing/index.html">
451      <span class="en">Google Play In-app Billing</span></a>
452    </div>
453    <ul>
454      <li><a href="/google/play/billing/billing_overview.html">
455              <span class="en">Overview</span></a>
456      </li>
457      <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html">
458              <span class="en">Version 3 API</span></a></div>
459              <ul>
460              <li><a href="/google/play/billing/billing_integrate.html">
461              <span class="en">Implementing the API</span></a></li>
462              <li><a href="/google/play/billing/billing_reference.html">
463              <span class="en">Reference</span></a></li>
464              </ul>
465      </li>
466      <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html">
467              <span class="en">Version 2 API</span></a></div>
468              <ul>
469              <li><a href="/google/play/billing/v2/billing_integrate.html">
470              <span class="en">Implementing the API</span></a></li>
471              <li><a href="/google/play/billing/v2/billing_subscriptions.html">
472              <span class="en">Subscriptions</span></a></li>
473              <li><a href="/google/play/billing/v2/billing_reference.html">
474              <span class="en">Reference</span></a></li>
475              </ul>
476      </li>
477      <li><a href="/google/play/billing/billing_subscriptions.html">
478              <span class="en">Subscriptions</span></a>
479      </li>
480      <li><a href="/google/play/billing/billing_best_practices.html">
481              <span class="en">Security and Design</span></a>
482      </li>
483      <li><a href="/google/play/billing/billing_testing.html">
484              <span class="en">Testing In-app Billing</span></a>
485      </li>
486      <li><a href="/google/play/billing/billing_admin.html">
487              <span class="en">Administering In-app Billing</span></a>
488      </li>
489      <li><a href="/google/play/billing/gp-purchase-status-api.html">
490              <span class="en">Purchase Status API</span></a>
491      </li>
492      <li><a href="/google/play/billing/versions.html">
493              <span class="en">Version Notes</span></a>
494      </li>
495    </ul>
496  </li>
497
498
499
500  <li class="nav-section">
501      <div class="nav-section-header"><a href="/google/gcm/index.html">
502        <span class="en">Google Cloud Messaging</span></a>
503      </div>
504      <ul>
505        <li><a href="/google/gcm/gs.html">
506            <span class="en">Getting Started</span></a>
507        </li>
508        <li><a href="/google/gcm/gcm.html">
509            <span class="en">Architectural Overview</span></a>
510        </li>
511         <li><a href="/google/gcm/ccs.html">
512              <span class="en">Cloud Connection Server</span></a>
513        </li>
514        <li><a href="/google/gcm/notifications.html">
515              <span class="en">User Notifications</span></a>
516        </li>
517        <li><a href="/google/gcm/client.html">
518            <span class="en">GCM Client</span></a>
519        </li>
520        <li><a href="/google/gcm/server.html">
521            <span class="en">GCM Server</span></a>
522        </li>
523        <li><a href="/google/gcm/adv.html">
524            <span class="en">Advanced Topics</span></a>
525        </li>
526        <li><a href="/google/gcm/c2dm.html">
527            <span class="en">Migration</span></a>
528        </li>
529        <li id="gcm-tree-list" class="nav-section">
530          <div class="nav-section-header">
531            <a href="/reference/gcm-packages.html">
532              <span class="en">Reference</span>
533            </a>
534          <div>
535        </li>
536      </ul>
537  </li>
538
539  <li class="nav-section">
540    <div class="nav-section-header"><a href="/google/play/dist.html">
541      <span class="en">Google Play Distribution</span></a>
542    </div>
543    <ul>
544      <li><a href="/google/play/filters.html">
545          <span class="en">Filters on Google Play</span></a>
546      </li>
547
548      <li><a href="/google/play/publishing/multiple-apks.html">
549          <span class="en">Multiple APK Support</span></a>
550      </li>
551      <li><a href="/google/play/expansion-files.html">
552          <span class="en">APK Expansion Files</span></a>
553      </li>
554      <li class="nav-section">
555        <div class="nav-section-header"><a href="/google/play/licensing/index.html">
556          <span class="en">Application Licensing</span></a>
557        </div>
558        <ul>
559          <li><a href="/google/play/licensing/overview.html">
560              <span class="en">Licensing Overview</span></a>
561          </li>
562          <li><a href="/google/play/licensing/setting-up.html">
563              <span class="en">Setting Up for Licensing</span></a>
564          </li>
565          <li><a href="/google/play/licensing/adding-licensing.html">
566              <span class="en">Adding Licensing to Your App</span></a>
567          </li>
568          <li><a href="/google/play/licensing/licensing-reference.html">
569              <span class="en">Licensing Reference</span></a>
570          </li>
571        </ul>
572      </li>
573
574  <li class="nav-section">
575    <div class="nav-section-header"><a href="/google/backup/index.html">
576      Android Backup Service</a>
577    </div>
578    <ul>
579      <li><a href="/google/backup/signup.html">
580          Register</a>
581      </li>
582    </ul>
583  </li>
584
585  </ul>
586
587</li>
588
589
590
591</ul>
592
593<script type="text/javascript">
594<!--
595    buildToggleLists();
596    changeNavLang(getLangPref());
597//-->
598</script>
599
600
601
602
603      </div>
604      <script type="text/javascript">
605       showGoogleRefTree();
606
607      </script>
608    </div> <!-- end side-nav -->
609    <script>
610      $(document).ready(function() {
611        scrollIntoView("devdoc-nav");
612        });
613    </script>
614
615
616
617
618
619
620<div class="col-12" id="doc-col">
621
622<div id="jd-header">
623<h1>Package Index</h1>
624</div>
625
626<div id="jd-content">
627
628<div class="jd-descr">
629<p></p>
630</div>
631
632
633<table class="jd-sumtable">
634
635    <tr class="alt-color api apilevel-" >
636        <td class="jd-linkcol">
637  <a href="/reference/com/google/android/gcm/package-summary.html">com.google.android.gcm</a></td>
638        <td class="jd-descrcol" width="100%"><p><strong>DEPRECATED</strong> &mdash; please use the <a href="/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html">GoogleCloudMessaging</a> API instead of this client helper library &mdash; see <a href="/google/gcm/client.html">GCM Client</a> for more information.</td>
639    </tr>
640
641
642    <tr class=" api apilevel-" >
643        <td class="jd-linkcol">
644  <a href="/reference/com/google/android/gcm/server/package-summary.html">com.google.android.gcm.server</a></td>
645        <td class="jd-descrcol" width="100%"><p>Helper library for GCM HTTP server operations &mdash; see <a href="/google/gcm/server.html">GCM Server</a> for more information.</td>
646    </tr>
647
648
649</table>
650
651<div id="footer" class="wrap" >
652
653
654  <div id="copyright">
655
656  Except as noted, this content is licensed under <a
657  href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
658  For details and restrictions, see the <a href="/license.html">
659  Content License</a>.
660  </div>
661  <div id="build_info">
662
663<script src="/timestamp.js" type="text/javascript"></script>
664<script>document.write(BUILD_TIMESTAMP)</script>
665
666  </div>
667
668
669  <div id="footerlinks">
670
671  <p>
672    <a href="/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
673    <a href="/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
674    <a href="/support.html">Support</a>
675  </p>
676  </div>
677
678</div> <!-- end footer -->
679</div><!-- end jd-content -->
680</div> <!-- end doc-content -->
681
682</div> <!-- end body-content -->
683
684
685
686
687
688
689</body>
690</html>
691