-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
484 lines (367 loc) · 18.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Description" content="The official site for Android developers. Provides the Android SDK and documentation for app developers and designers.">
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<title>Android Developers</title>
<link href="./assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
<script src="./assets/search_autocomplete.js" type="text/javascript"></script>
<script src="./assets/jquery-resizable.min.js" type="text/javascript"></script>
<script src="./assets/android-developer-docs.js" type="text/javascript"></script>
<script src="./assets/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
setToRoot("./");
</script>
<noscript>
<style type="text/css">
html,body{overflow:auto;}
#body-content{position:relative; top:0;}
#doc-content{overflow:visible;border-left:3px solid #666;}
#side-nav{padding:0;}
#side-nav .toggle-list ul {display:block;}
#resize-packages-nav{border-bottom:3px solid #666;}
</style>
</noscript>
</head>
<body class="gc-documentation">
<a name="top"></a>
<div id="translate-inprogress-message">
<p style="text-align:center">This is an in-progress translation. 如果你有兴趣一起翻译,可以到<a href="http://github.com/chengbo/android_dev_guide_translation_cn">github</a> push你的帮助。</p>
</div>
<div id="header">
<div id="headerLeft">
<a href="./index.html" tabindex="-1"><img
src="./assets/images/bg_logo.png" alt="Android Developers" /></a>
<ul id="header-tabs" class="home">
<li id="home-link"><a href="./index.html">
<span class="en">主页</span>
<span style="display:none" class="de">Startseite</span>
<span style="display:none" class="es"></span>
<span style="display:none" class="fr"></span>
<span style="display:none" class="it"></span>
<span style="display:none" class="ja">ホーム</span>
<span style="display:none" class="zh-CN">主页</span>
<span style="display:none" class="zh-TW">首頁</span>
</a></li>
<li id="sdk-link"><a href="http://developer.android.com/sdk/index.html">
<span class="en">SDK</span>
</a></li>
<li id="guide-link"><a href="./guide/index.html" onClick="return loadLast('guide')">
<span class="en">开发人员指南</span>
<span style="display:none" class="de">Handbuch</span>
<span style="display:none" class="es">Guía</span>
<span style="display:none" class="fr">Guide</span>
<span style="display:none" class="it">Guida</span>
<span style="display:none" class="ja">開発ガイド</span>
<span style="display:none" class="zh-CN">开发人员指南</span>
<span style="display:none" class="zh-TW">開發指南</span>
</a></li>
<li id="reference-link"><a href="http://developer.android.com/reference/packages.html" onClick="return loadLast('reference')">
<span class="en">参考</span>
<span style="display:none" class="de">Referenz</span>
<span style="display:none" class="es">Referencia</span>
<span style="display:none" class="fr">Référence</span>
<span style="display:none" class="it">Riferimento</span>
<span style="display:none" class="ja">リファレンス</span>
<span style="display:none" class="zh-CN">参考</span>
<span style="display:none" class="zh-TW">參考資料</span>
</a></li>
<li id="resources-link"><a href="http://developer.android.com/resources/index.html" onClick="return loadLast('resources')">
<span class="en">资源</span>
<span style="display:none" class="de"></span>
<span style="display:none" class="es"></span>
<span style="display:none" class="fr"></span>
<span style="display:none" class="it"></span>
<span style="display:none" class="ja"></span>
<span style="display:none" class="zh-CN"></span>
<span style="display:none" class="zh-TW"></span>
</a></li>
<li id="videos-link"><a href="http://developer.android.com/videos/index.html" onClick="return loadLast('videos')">
<span class="en">视频</span>
<span style="display:none" class="de"></span>
<span style="display:none" class="es"></span>
<span style="display:none" class="fr"></span>
<span style="display:none" class="it"></span>
<span style="display:none" class="ja">ビデオ</span>
<span style="display:none" class="zh-CN"></span>
<span style="display:none" class="zh-TW"></span>
</a></li>
<li><a href="http://android-developers.blogspot.com" onClick="return requestAppendHL(this.href)">
<span class="en">博客</span>
<span style="display:none" class="de"></span>
<span style="display:none" class="es"></span>
<span style="display:none" class="fr"></span>
<span style="display:none" class="it"></span>
<span style="display:none" class="ja">ブログ</span>
<span style="display:none" class="zh-CN">博客</span>
<span style="display:none" class="zh-TW">網誌</span>
</a></li>
</ul>
</div>
<div id="headerRight">
<div id="headerLinks">
<a href="http://developer.android.com/design/index.html">Android Design</a>
<a href="http://www.android.com">Android.com</a>
</div>
<div id="search" >
<div id="searchForm">
<form accept-charset="utf-8" class="gsc-search-box"
onsubmit="return submit_search()">
<table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
<tr>
<td class="gsc-input">
<input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
title="search developer docs" name="q"
value="search developer docs"
onFocus="search_focus_changed(this, true)"
onBlur="search_focus_changed(this, false)"
onkeydown="return search_changed(event, true, './')"
onkeyup="return search_changed(event, false, './')" />
<div id="search_filtered_div" class="no-display">
<table id="search_filtered" cellspacing=0>
</table>
</div>
</td>
<td class="gsc-search-button">
<input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
</td>
<td class="gsc-clear-button">
<div title="clear results" class="gsc-clear-button"> </div>
</td>
</tr></tbody>
</table>
</form>
</div><!-- searchForm -->
</div><!-- search -->
</div><!-- headerRight -->
<script type="text/javascript">
<!--
changeTabLang(getLangPref());
//-->
</script>
</div><!-- header -->
<div id="body-content">
<div id="doc-content" style="position:relative;">
<div id="mainBodyFixed">
<div id="mainBodyLeft">
<div id="homeMiddle">
<div id="topAnnouncement">
<div id="homeTitle">
<h2>开发人员通告</h2>
</div><!-- end homeTitle -->
<div id="announcement-block">
<!-- total max width is 520px -->
<img src="./images/home/play_logo.png"
alt="Google Play" width="120px" style="padding:10px 52px"/>
<div id="announcement" style="width:275px">
<p><strong>Google Play</strong>介绍:一个集成的电子内容商店,用户可以在一个地方购买,享用他们喜欢的内容。它是Android程序新的胜地。</p>
<p><a href="http://android-developers.blogspot.com/2012/03/introducing-google-play.html">查看更多 »</a></p>
</div> <!-- end annoucement -->
</div> <!-- end annoucement-block -->
</div><!-- end topAnnouncement -->
<div id="carouselMain" style="height:205px"> <!-- this height can be
adjusted based on the content height -->
</div>
<div class="clearer"></div>
<div id="carouselWheel">
<div class="app-list-container" align="center">
<a href="javascript:{}" id="arrow-left" onclick="" class="arrow-left-off"></a>
<div id="list-clip">
<div style="left: 0px;" id="app-list">
<!-- populated by buildCarousel() -->
</div>
</div><!-- end list-clip -->
<a href="javascript:{ page_right(); }" id="arrow-right" onclick="" class="arrow-right-on"></a>
<div class="clearer"></div>
</div><!-- end app-list container -->
</div><!-- end carouselWheel -->
</div><!-- end homeMiddle -->
<div style="clear:both"> </div>
</div><!-- end mainBodyLeft -->
<div id="mainBodyRight">
<table id="rightColumn">
<tr>
<td class="imageCell"><a href="http://developer.android.com/sdk/index.html"><img src="./assets/images/icon_download.jpg" style="padding:0" /></a></td>
<td>
<h2 class="green">下载</h2>
<p>Android SDK包括你开发程序所需的工具,示例代码以及文档等。</p>
<p><a href="http://developer.android.com/sdk/index.html">查看更多 »</a></p>
</td>
</tr>
<tr>
<td colspan="2"><div class="seperator"> </div></td>
</tr>
<tr>
<td class="imageCell"><a href="http://play.google.com/apps/publish"><img src="./assets/images/icon_play.png" style="padding:0" /></a></td>
<td>
<h2 class="green">发布</h2>
<p>Google Play是一个开放的服务,你可以用它发布你的程序。</p>
<p><a href="http://play.google.com/apps/publish">查看更多 »</a></p>
</td>
</tr>
<tr>
<td colspan="2"><div class="seperator"> </div></td>
</tr>
<tr>
<td class="imageCell"><a href="http://source.android.com"><img src="./assets/images/icon_contribute.jpg" style="padding:0" /></a></td>
<td>
<h2 class="green">贡献</h2>
<p>Android是开源项目,你可以获得所有平台的源代码。</p>
<p><a href="http://source.android.com">查看更多 »</a></p>
</td>
</tr>
<tr>
<td colspan="2"><div class="seperator"> </div></td>
</tr>
<tr>
<td class="imageCell"><a
href="http://developer.android.com/resources/dashboard/platform-versions.html"><img
src="./images/icon_dashboard.png" style="padding:0" /></a></td>
<td>
<h2 class="green">目标设备</h2>
<p>设备统计面板提供了目前正在使用的Android设备的一些信息,帮助你瞄准合适的设备配置来开发和更新程序。</p>
<p><a
href="http://developer.android.com/resources/dashboard/platform-versions.html">查看更多 »</a></p>
</td>
</tr>
</table>
</div>
</div>
<!--[if lte IE 6]>
<style>
#arrow-left {
margin:0 0 0 5px;
}
#arrow-right {
margin-left:0;
}
.app-list-container {
margin: 37px 0 0 23px;
}
div#list-clip {
width:468px;
}
</style>
<![endif]-->
<script type="text/javascript">
// * -- carousel dictionary -- * //
/* layout: imgLeft, imgRight, imgTop
icon: image for carousel entry. cropped (height:70px, width:90px)
name: string for carousel entry
img: image for bulletin post. cropped (height: 170, width:230px)
title: header for bulletin (optional, insert "" value to skip
desc: the bulletin post. must include html tags.
*/
var droidList = {
'sdk': {
'layout':"imgLeft",
'icon':"sdk-small.png",
'name':"Android 4.0.3",
'img':"ics-android.png",
'title':"Android 4.0.3",
'desc': "<p>Android 4.0.3 is an update to the Ice Cream Sandwich release that adds a "
+ "handful of new features for users and developers. Check out the <a "
+ "href='http://developer.android.com/sdk/android-4.0-highlights.html'>Platform Highlights</a> "
+ "for an overview of all features in Android 4.0.x.</p>"
+ "<p>For information about API changes in 4.0.3 (API level 15), read the "
+ "<a href='./sdk/android-4.0.3.html'>platform notes</a> and <a "
+ "href='./sdk/api_diff/15/changes.html'>diff report</a>. If you're new to Android, "
+ "get started with the <a href='/sdk/index.html'>SDK starter package</a>.</p>"
},
'plus': {
'layout':"imgLeft",
'icon':"google-plus-small.png",
'name':"Google+ Page",
'img':"google-plus.png",
'title':"Android Developers在 Google+ 上",
'desc': "<p>现在<a "
+ "href='https://plus.google.com/108967384991768947849'>Android Developers</a>开通了Google+。"
+ "我们会在上面发布一些给开发人员准备的资料,讨论最新的发布内容,开发和设计技巧,以及其它一些信息。</p>"
+ "<div style='margin:.7em 0 0 0'><g:plus href='https://plus.google.com/108967384991768947849' "
+ "size=\"smallbadge\" width=\"275\"></g:plus></div>"
},
'tv': {
'layout':"imgLeft",
'icon':"GTV_icon_small.png",
'name':"Google TV",
'img':"GTV_icon_large.png",
'title':"Google TV!",
'desc': "<p>Build something big. By big, we mean <em>worthy-of-the-living-room</em> big.</p>"
+ " <p>Google TV brings the power of Android"
+ " and Google Chrome to television."
+ " The average American watches five hours of TV per day. Give them the apps"
+ " to update their status, listen to music, watch web videos, and more.</p>"
+ "<p><a href='http://code.google.com/tv'>Develop for Google TV »</a></p>"
},
/*
'devphone': {
'layout':"imgLeft",
'icon':"devphone-small.png",
'name':"Dev Phones",
'img':"devphone-large.png",
'title':"Android Dev Phones",
'desc': "<p>Run and debug your Android applications directly on one of these "
+ "devices. Modify and rebuild the Android operating system, and flash it onto "
+ "the phone. The Android Dev Phones are carrier-independent, and available for "
+ "purchase by developers through their Google Play publisher accounts.</p><p> "
+ "<a href='http://play.google.com/apps/publish'>Visit Google Play "
+ "to learn more »</a></p>"
},
*/
'mapskey': {
'layout':"imgLeft",
'icon':"maps-small.png",
'name':"Maps API Key",
'img':"maps-large.png",
'title':"Maps API Key",
'desc':"<p>If you're writing an Android application that uses Google Maps (with MapView), you must register your application to obtain a Maps API Key. Without the key, your maps application will not work on Android devices. Obtaining a key requires just a couple of steps.</p><p><a href='http://code.google.com/android/add-ons/google-apis/maps-overview.html'>Learn more »</a></p>"
}
}
</script>
<script type="text/javascript" src="./assets/carousel.js"></script>
<script type="text/javascript">
initCarousel("plus");
</script>
<script type="text/javascript" src="https://plus.google.com/108967384991768947849"
rel="publisher"></script>
<script type="text/javascript">
window.___gcfg = {lang: 'en'};
(function()
{var po = document.createElement("script");
po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(po, s);
})();</script>
<div id="footer">
<div id="copyright">
Except as noted, this content is
licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
Creative Commons Attribution 2.5</a>. For details and
restrictions, see the <a href="./license.html">Content
License</a>.
</div>
<div id="footerlinks">
<p>
<a href="http://www.google.com/intl/en/policies/" target="_blank">Privacy & Terms</a> -
<a href="http://www.android.com/branding.html" target="_blank">Brand Guidelines</a> -
<a
href="http://code.google.com/p/android/issues/entry?template=Developer%20Documentation"
target="_blank">Report Document Issues</a>
</p>
</div>
</div> <!-- end footer -->
</div><!-- end doc-content -->
</div> <!-- end body-content -->
<script type="text/javascript">
init(); /* initialize android-developer-docs.js */
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5831155-1");
pageTracker._trackPageview();
</script>
</body>
</html>