blob: 41c9446d5ba4231345d844af9675b7c305752f3a [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
3<html>
4<?cs if:sdk.redirect ?>
5 <head>
6 <title>Redirecting...</title>
Scott Maincc089092011-01-17 16:44:10 -08007 <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs
8 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
Dirk Doughertye1233852010-03-03 14:34:51 -08009 else ?>index.html<?cs /if ?>">
The Android Open Source Project88b60792009-03-03 19:28:42 -080010 <link href="<?cs var:toroot ?>assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
11 </head>
12<?cs else ?>
13 <?cs include:"head_tag.cs" ?>
14<?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070015<body class="gc-documentation
16 <?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
17 elif:design ?>design<?cs
18 elif:distribute ?>distribute<?cs
19 /if ?>" itemscope itemtype="http://schema.org/CreativeWork">
20 <a name="top"></a>
21<?cs include:"header.cs" ?>
The Android Open Source Project88b60792009-03-03 19:28:42 -080022
Scott Maine4d8f1b2012-06-21 18:03:05 -070023
24<div <?cs if:fullpage
25?><?cs else
26?>class="col-13" id="doc-col"<?cs /if ?> >
The Android Open Source Project88b60792009-03-03 19:28:42 -080027
The Android Open Source Project88b60792009-03-03 19:28:42 -080028<?cs if:sdk.redirect ?>
Dirk Doughertyd8cfce02009-07-15 16:37:21 -070029
Dirk Dougherty19a4bd12009-04-24 11:30:32 -070030<div class="g-unit">
31 <div id="jd-content">
Scott Maincc089092011-01-17 16:44:10 -080032 <p>Redirecting to
33 <a href="<?cs var:toroot ?>sdk/<?cs
Scott Mainb66a5c02010-07-08 11:29:28 -070034 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
35 else ?>index.html<?cs /if ?>"><?cs
36 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
37 else ?>Download the SDK<?cs /if ?>
Dirk Doughertyd8cfce02009-07-15 16:37:21 -070038 </a> ...</p>
Scott Maincc089092011-01-17 16:44:10 -080039
The Android Open Source Project88b60792009-03-03 19:28:42 -080040<?cs else ?>
Scott Maincc089092011-01-17 16:44:10 -080041<?cs # else, if NOT redirect ...
42#
43#
44# The following is for SDK/NDK pages
45#
46#
47?>
48
Scott Maine4d8f1b2012-06-21 18:03:05 -070049<?cs if:header.hide ?><?cs else ?>
50<h1 itemprop="name"><?cs var:page.title ?></h1>
51<?cs /if ?>
Scott Main3652a112012-01-30 13:03:08 -080052 <div id="jd-content" itemprop="description">
The Android Open Source Project88b60792009-03-03 19:28:42 -080053
54<?cs if:sdk.not_latest_version ?>
55 <div class="special">
56 <p><strong>This is NOT the current Android SDK release.</strong></p>
Dirk Dougherty3d3d7b72009-10-21 19:52:52 -070057 <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -080058 </div>
59<?cs /if ?>
Dirk Doughertye6be85f2009-06-24 11:01:03 -070060
The Android Open Source Project88b60792009-03-03 19:28:42 -080061
Scott Maincc089092011-01-17 16:44:10 -080062<?cs if:ndk ?>
63<?cs #
64#
65#
66#
67#
68#
69#
70# the following is for the NDK
71#
72# (nested in if/else redirect)
73#
74#
75#
76#
77?>
The Android Open Source Project88b60792009-03-03 19:28:42 -080078
Scott Main25659b02012-06-22 17:02:25 -070079 <table class="download" id="download-table">
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070080 <tr>
81 <th>Platform</th>
82 <th>Package</th>
83 <th>Size</th>
84 <th>MD5 Checksum</th>
85 </tr>
86 <tr>
87 <td>Windows</td>
88 <td>
Scott Main098d8de2012-11-13 11:25:06 -080089 <a onClick="return onDownload(this)"
Scott Main46c58042012-10-03 16:34:52 -070090 href="http://dl.google.com/android/ndk/<?cs var:ndk.win_download ?>"><?cs var:ndk.win_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070091 </td>
92 <td><?cs var:ndk.win_bytes ?> bytes</td>
93 <td><?cs var:ndk.win_checksum ?></td>
94 </tr>
95 <tr class="alt-color">
96 <td>Mac OS X (intel)</td>
97 <td>
Scott Main098d8de2012-11-13 11:25:06 -080098 <a onClick="return onDownload(this)"
Scott Main46c58042012-10-03 16:34:52 -070099 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac_download ?>"><?cs var:ndk.mac_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700100 </td>
101 <td><?cs var:ndk.mac_bytes ?> bytes</td>
102 <td><?cs var:ndk.mac_checksum ?></td>
103 </tr>
104 <tr>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700105 <td>Linux 32/64-bit (x86)</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700106 <td>
Scott Main098d8de2012-11-13 11:25:06 -0800107 <a onClick="return onDownload(this)"
Scott Main46c58042012-10-03 16:34:52 -0700108 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux_download ?>"><?cs var:ndk.linux_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700109 </td>
110 <td><?cs var:ndk.linux_bytes ?> bytes</td>
111 <td><?cs var:ndk.linux_checksum ?></td>
112 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700113 </table>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700114
115 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
116 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700117
Scott Main098d8de2012-11-13 11:25:06 -0800118
119
120<script>
121 function onDownload(link) {
122
123 $("#downloadForRealz").html("Download " + $(link).text());
124 $("#downloadForRealz").attr('href',$(link).attr('href'));
125
126 $("#tos").fadeIn('slow');
127
128 location.hash = "download";
129 return false;
130 }
131
132
133 function onAgreeChecked() {
134 if ($("input#agree").is(":checked")) {
135 $("a#downloadForRealz").removeClass('disabled');
136 } else {
137 $("a#downloadForRealz").addClass('disabled');
138 }
139 }
140
141 function onDownloadNdkForRealz(link) {
142 if ($("input#agree").is(':checked')) {
143 $("#tos").fadeOut('slow');
144
145 $('html, body').animate({
146 scrollTop: $("#Installing").offset().top
147 }, 800, function() {
148 $("#Installing").click();
149 });
150
151 return true;
152 } else {
153 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
154 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
155 );
156 return false;
157 }
158 }
159
160 $(window).hashchange( function(){
161 if (location.hash == "") {
162 location.reload();
163 }
164 });
165
166</script>
167
Scott Maincc089092011-01-17 16:44:10 -0800168 <?cs else ?>
169<?cs # end if NDK ...
170#
171#
172#
173#
174#
175#
176# the following is for the SDK
177#
178# (nested in if/else redirect and if/else NDK)
179#
180#
181#
182#
183?>
Scott Mainb73777e2010-11-22 15:02:01 -0800184 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700185
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800186
Scott Maine4d8f1b2012-06-21 18:03:05 -0700187<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
188<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800189
Scott Maindb3678b2012-10-23 14:13:41 -0700190
191
192
Scott Main55d99832012-11-12 23:03:59 -0800193<h4><a href='' class="expandable"
194 onclick="toggleExpandable(this,'.pax');hideExpandable('.myide,.reqs');return false;"
195 >DOWNLOAD FOR OTHER PLATFORMS</a></h4>
196
197
198<div class="pax col-13 online" style="display:none;margin:0;">
Scott Maindb3678b2012-10-23 14:13:41 -0700199
Scott Main55d99832012-11-12 23:03:59 -0800200
Scott Maindb3678b2012-10-23 14:13:41 -0700201<p class="table-caption"><strong>ADT Bundle</strong></p>
202 <table class="download">
203 <tr>
204 <th>Platform</th>
205 <th>Package</th>
206 <th>Size</th>
207 <th>MD5 Checksum</th>
208 </tr>
209 <tr>
210 <td>Windows</td>
211 <td>
212 <a onClick="return onDownload(this)" id="win-bundle"
Scott Main098d8de2012-11-13 11:25:06 -0800213 href="http://dl.google.com/android/<?cs var:sdk.win_bundle_download ?>"><?cs var:sdk.win_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700214 </td>
215 <td><?cs var:sdk.win_bundle_bytes ?> bytes</td>
216 <td><?cs var:sdk.win_bundle_checksum ?></td>
217 </tr>
218 <tr class="alt-color">
219 <td>Mac OS X (intel)</td>
220 <td>
221 <a onClick="return onDownload(this)" id="mac-bundle"
Scott Main098d8de2012-11-13 11:25:06 -0800222 href="http://dl.google.com/android/<?cs var:sdk.mac_bundle_download ?>"><?cs var:sdk.mac_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700223 </td>
224 <td><?cs var:sdk.mac_bundle_bytes ?> bytes</td>
225 <td><?cs var:sdk.mac_bundle_checksum ?></td>
226 </tr>
227 <tr>
228 <td>Linux 32/64-bit (x86)</td>
229 <td>
230 <a onClick="return onDownload(this)" id="linux-bundle"
Scott Main098d8de2012-11-13 11:25:06 -0800231 href="http://dl.google.com/android/<?cs var:sdk.linux_bundle_download ?>"><?cs var:sdk.linux_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700232 </td>
233 <td><?cs var:sdk.linux_bundle_bytes ?> bytes</td>
234 <td><?cs var:sdk.linux_bundle_checksum ?></td>
235 </tr>
236 </table>
237
238
239<p class="table-caption"><strong>SDK Tools Only</strong></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800240 <table class="download">
241 <tr>
242 <th>Platform</th>
243 <th>Package</th>
244 <th>Size</th>
245 <th>MD5 Checksum</th>
246 </tr>
247 <tr>
Scott Maincc089092011-01-17 16:44:10 -0800248 <td rowspan="2">Windows</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800249 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700250 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700251?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800252 </td>
253 <td><?cs var:sdk.win_bytes ?> bytes</td>
254 <td><?cs var:sdk.win_checksum ?></td>
255 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800256 <tr>
257 <!-- blank TD from Windows rowspan -->
258 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700259 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700260var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800261?>"><?cs var:sdk.win_installer ?></a> (Recommended)
262 </td>
263 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
264 <td><?cs var:sdk.win_installer_checksum ?></td>
265 </tr>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800266 <tr class="alt-color">
267 <td>Mac OS X (intel)</td>
268 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700269 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700270var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700271?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800272 </td>
273 <td><?cs var:sdk.mac_bytes ?> bytes</td>
274 <td><?cs var:sdk.mac_checksum ?></td>
275 </tr>
276 <tr>
277 <td>Linux (i386)</td>
278 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700279 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700280var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700281?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800282 </td>
283 <td><?cs var:sdk.linux_bytes ?> bytes</td>
284 <td><?cs var:sdk.linux_checksum ?></td>
285 </tr>
286 </table>
Scott Maindb3678b2012-10-23 14:13:41 -0700287
Scott Main55d99832012-11-12 23:03:59 -0800288</div><!-- end pax -->
Scott Maindb3678b2012-10-23 14:13:41 -0700289
290
Scott Main55d99832012-11-12 23:03:59 -0800291
292</div><!-- end col-13 for lower-half content -->
Scott Maindb3678b2012-10-23 14:13:41 -0700293
294
Scott Maine4d8f1b2012-06-21 18:03:05 -0700295
296
297<script>
Scott Main55d99832012-11-12 23:03:59 -0800298 if (location.hash == "#Requirements") {
299 $('.reqs').show();
300 } else if (location.hash == "#ExistingIDE") {
301 $('.ide').show();
302 }
Scott Maindb3678b2012-10-23 14:13:41 -0700303
Scott Maine4d8f1b2012-06-21 18:03:05 -0700304 var os;
Scott Maindb3678b2012-10-23 14:13:41 -0700305 var $bundlelink;
306 var $toolslink;
307
Scott Maine4d8f1b2012-06-21 18:03:05 -0700308 if (navigator.appVersion.indexOf("Win")!=-1) {
309 os = "Windows";
Scott Maindb3678b2012-10-23 14:13:41 -0700310 $bundlelink = $('#win-bundle');
311 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700312 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
313 os = "Mac";
Scott Maindb3678b2012-10-23 14:13:41 -0700314 $bundlelink = $('#mac-bundle');
315 $toolslink = $('#mac-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700316 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
317 os = "Linux";
Scott Maindb3678b2012-10-23 14:13:41 -0700318 $bundlelink = $('#linux-bundle');
319 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700320 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800321
Scott Maine4d8f1b2012-06-21 18:03:05 -0700322 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700323 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700324
325 /* set up primary adt download button */
326 $('#download-bundle-button').show();
327 $('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
328 $('#download-bundle-button').click(function() {return onDownload(this,true);}).attr('href', $bundlelink.attr('href'));
329
330 /* set up sdk tools only button */
331 $('#download-tools-button').show();
332 $('#download-tools-button').append("Download the SDK Tools for " + os);
333 $('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
Scott Maine4d8f1b2012-06-21 18:03:05 -0700334 } else {
335 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700336 }
Scott Maina1b358a2010-06-24 16:36:54 -0700337
Scott Maindb3678b2012-10-23 14:13:41 -0700338 function onDownload(link, button) {
339
340 if (button) {
341 $("#downloadForRealz").html($(link).text());
342 } else {
343 $("#downloadForRealz").html("Download " + $(link).text());
344 $("a#next-link").html("Setting Up an Existing IDE").attr('href',toRoot + 'sdk/installing/index.html');
345 }
346 $("#downloadForRealz").attr('href',$(link).attr('href'));
347
348 $("#tos").fadeIn('fast');
349 $("#landing").fadeOut('fast');
350
351 location.hash = "download";
352 return false;
353 }
354
355
356 function onAgreeChecked() {
357 if ($("input#agree").is(":checked")) {
358 $("a#downloadForRealz").removeClass('disabled');
359 } else {
360 $("a#downloadForRealz").addClass('disabled');
361 }
362 }
363
364 function onDownloadForRealz(link) {
365 if ($("input#agree").is(':checked')) {
366 $("div.sdk-terms").slideUp();
367 $("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow');
368 $("#next-steps").fadeIn('slow');
369 $("h1#tos-header").text('Get Ready to Code!');
370 return true;
371 } else {
372 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
373 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
374 );
375 return false;
376 }
377 }
378
379 $(window).hashchange( function(){
Scott Maindb3678b2012-10-23 14:13:41 -0700380 if (location.hash == "") {
381 location.reload();
382 }
383 });
384
Scott Maina1b358a2010-06-24 16:36:54 -0700385</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700386
Scott Maine4d8f1b2012-06-21 18:03:05 -0700387
Scott Maindb3678b2012-10-23 14:13:41 -0700388
389</div><!-- end the wrapper used for relative/absolute positions -->
390<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
391
392
393
394
Scott Main58286dc2011-01-17 18:23:21 -0800395 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700396
Scott Main17e47ad2011-05-27 09:52:19 -0700397 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800398 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
399 Android 3.0 release, to give you a head-start on developing applications for it.
400 </p>
401
402 <p>See the <a
403 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
404 about how to set up the preview SDK and get started.</p>
405 <style type="text/css">
406 .non-preview { display:none; }
407 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700408
409 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700410
411 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
412 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700413 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700414 body .offline { display:block; }
415 body .online { display:none; }
416 </style>
417 <script>
418 $('.reqs').show();
419 </script>
Scott Maincc089092011-01-17 16:44:10 -0800420 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700421
Scott Main58286dc2011-01-17 18:23:21 -0800422 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800423
424<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700425
Scott Maincc089092011-01-17 16:44:10 -0800426<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700427
The Android Open Source Project88b60792009-03-03 19:28:42 -0800428
The Android Open Source Project88b60792009-03-03 19:28:42 -0800429</div><!-- end jd-content -->
430
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700431<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800432<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700433<?cs /if ?>
434
Scott Maincc089092011-01-17 16:44:10 -0800435</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800436
437<?cs include:"trailer.cs" ?>
438
439</body>
440</html>
441
442
443