blob: 305c0854c1429d32182180c1a688b533ee07757c [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 Main46c58042012-10-03 16:34:52 -070089 <a onClick="_gaq.push(['_trackEvent', 'Tools', 'Download NDK', 'Link <' + <?cs var:ndk.win_download ?> + '>']);"
90 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 Main46c58042012-10-03 16:34:52 -070098 <a onClick="_gaq.push(['_trackEvent', 'Tools', 'Download NDK', 'Link <' + <?cs var:ndk.mac_download ?> + '>']);"
99 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 Main46c58042012-10-03 16:34:52 -0700107 <a onClick="_gaq.push(['_trackEvent', 'Tools', 'Download NDK', 'Link <' + <?cs var:ndk.linux_download ?> + '>']);"
108 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 Maincc089092011-01-17 16:44:10 -0800118 <?cs else ?>
119<?cs # end if NDK ...
120#
121#
122#
123#
124#
125#
126# the following is for the SDK
127#
128# (nested in if/else redirect and if/else NDK)
129#
130#
131#
132#
133?>
Scott Mainb73777e2010-11-22 15:02:01 -0800134 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700135
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800136
Scott Maine4d8f1b2012-06-21 18:03:05 -0700137<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
138<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800139
Scott Maindb3678b2012-10-23 14:13:41 -0700140
141
142
Scott Main55d99832012-11-12 23:03:59 -0800143<h4><a href='' class="expandable"
144 onclick="toggleExpandable(this,'.pax');hideExpandable('.myide,.reqs');return false;"
145 >DOWNLOAD FOR OTHER PLATFORMS</a></h4>
146
147
148<div class="pax col-13 online" style="display:none;margin:0;">
Scott Maindb3678b2012-10-23 14:13:41 -0700149
Scott Main55d99832012-11-12 23:03:59 -0800150
Scott Maindb3678b2012-10-23 14:13:41 -0700151<p class="table-caption"><strong>ADT Bundle</strong></p>
152 <table class="download">
153 <tr>
154 <th>Platform</th>
155 <th>Package</th>
156 <th>Size</th>
157 <th>MD5 Checksum</th>
158 </tr>
159 <tr>
160 <td>Windows</td>
161 <td>
162 <a onClick="return onDownload(this)" id="win-bundle"
163 href="http://dl.google.com/android/sdk/<?cs var:sdk.win_bundle_download ?>"><?cs var:sdk.win_bundle_download ?></a>
164 </td>
165 <td><?cs var:sdk.win_bundle_bytes ?> bytes</td>
166 <td><?cs var:sdk.win_bundle_checksum ?></td>
167 </tr>
168 <tr class="alt-color">
169 <td>Mac OS X (intel)</td>
170 <td>
171 <a onClick="return onDownload(this)" id="mac-bundle"
172 href="http://dl.google.com/android/sdk/<?cs var:ndk.mac_bundle_download ?>"><?cs var:sdk.mac_bundle_download ?></a>
173 </td>
174 <td><?cs var:sdk.mac_bundle_bytes ?> bytes</td>
175 <td><?cs var:sdk.mac_bundle_checksum ?></td>
176 </tr>
177 <tr>
178 <td>Linux 32/64-bit (x86)</td>
179 <td>
180 <a onClick="return onDownload(this)" id="linux-bundle"
181 href="http://dl.google.com/android/sdk/<?cs var:sdk.linux_bundle_download ?>"><?cs var:sdk.linux_bundle_download ?></a>
182 </td>
183 <td><?cs var:sdk.linux_bundle_bytes ?> bytes</td>
184 <td><?cs var:sdk.linux_bundle_checksum ?></td>
185 </tr>
186 </table>
187
188
189<p class="table-caption"><strong>SDK Tools Only</strong></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800190 <table class="download">
191 <tr>
192 <th>Platform</th>
193 <th>Package</th>
194 <th>Size</th>
195 <th>MD5 Checksum</th>
196 </tr>
197 <tr>
Scott Maincc089092011-01-17 16:44:10 -0800198 <td rowspan="2">Windows</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800199 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700200 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700201?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800202 </td>
203 <td><?cs var:sdk.win_bytes ?> bytes</td>
204 <td><?cs var:sdk.win_checksum ?></td>
205 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800206 <tr>
207 <!-- blank TD from Windows rowspan -->
208 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700209 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700210var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800211?>"><?cs var:sdk.win_installer ?></a> (Recommended)
212 </td>
213 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
214 <td><?cs var:sdk.win_installer_checksum ?></td>
215 </tr>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800216 <tr class="alt-color">
217 <td>Mac OS X (intel)</td>
218 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700219 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700220var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700221?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800222 </td>
223 <td><?cs var:sdk.mac_bytes ?> bytes</td>
224 <td><?cs var:sdk.mac_checksum ?></td>
225 </tr>
226 <tr>
227 <td>Linux (i386)</td>
228 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700229 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700230var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700231?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800232 </td>
233 <td><?cs var:sdk.linux_bytes ?> bytes</td>
234 <td><?cs var:sdk.linux_checksum ?></td>
235 </tr>
236 </table>
Scott Maindb3678b2012-10-23 14:13:41 -0700237
Scott Main55d99832012-11-12 23:03:59 -0800238</div><!-- end pax -->
Scott Maindb3678b2012-10-23 14:13:41 -0700239
240
Scott Main55d99832012-11-12 23:03:59 -0800241
242</div><!-- end col-13 for lower-half content -->
Scott Maindb3678b2012-10-23 14:13:41 -0700243
244
Scott Maine4d8f1b2012-06-21 18:03:05 -0700245
246
247<script>
Scott Main55d99832012-11-12 23:03:59 -0800248 if (location.hash == "#Requirements") {
249 $('.reqs').show();
250 } else if (location.hash == "#ExistingIDE") {
251 $('.ide').show();
252 }
Scott Maindb3678b2012-10-23 14:13:41 -0700253
Scott Maine4d8f1b2012-06-21 18:03:05 -0700254 var os;
Scott Maindb3678b2012-10-23 14:13:41 -0700255 var $bundlelink;
256 var $toolslink;
257
Scott Maine4d8f1b2012-06-21 18:03:05 -0700258 if (navigator.appVersion.indexOf("Win")!=-1) {
259 os = "Windows";
Scott Maindb3678b2012-10-23 14:13:41 -0700260 $bundlelink = $('#win-bundle');
261 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700262 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
263 os = "Mac";
Scott Maindb3678b2012-10-23 14:13:41 -0700264 $bundlelink = $('#mac-bundle');
265 $toolslink = $('#mac-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700266 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
267 os = "Linux";
Scott Maindb3678b2012-10-23 14:13:41 -0700268 $bundlelink = $('#linux-bundle');
269 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700270 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800271
Scott Maine4d8f1b2012-06-21 18:03:05 -0700272 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700273 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700274
275 /* set up primary adt download button */
276 $('#download-bundle-button').show();
277 $('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
278 $('#download-bundle-button').click(function() {return onDownload(this,true);}).attr('href', $bundlelink.attr('href'));
279
280 /* set up sdk tools only button */
281 $('#download-tools-button').show();
282 $('#download-tools-button').append("Download the SDK Tools for " + os);
283 $('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
Scott Maine4d8f1b2012-06-21 18:03:05 -0700284 } else {
285 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700286 }
Scott Maina1b358a2010-06-24 16:36:54 -0700287
Scott Maindb3678b2012-10-23 14:13:41 -0700288 function onDownload(link, button) {
289
290 if (button) {
291 $("#downloadForRealz").html($(link).text());
292 } else {
293 $("#downloadForRealz").html("Download " + $(link).text());
294 $("a#next-link").html("Setting Up an Existing IDE").attr('href',toRoot + 'sdk/installing/index.html');
295 }
296 $("#downloadForRealz").attr('href',$(link).attr('href'));
297
298 $("#tos").fadeIn('fast');
299 $("#landing").fadeOut('fast');
300
301 location.hash = "download";
302 return false;
303 }
304
305
306 function onAgreeChecked() {
307 if ($("input#agree").is(":checked")) {
308 $("a#downloadForRealz").removeClass('disabled');
309 } else {
310 $("a#downloadForRealz").addClass('disabled');
311 }
312 }
313
314 function onDownloadForRealz(link) {
315 if ($("input#agree").is(':checked')) {
316 $("div.sdk-terms").slideUp();
317 $("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow');
318 $("#next-steps").fadeIn('slow');
319 $("h1#tos-header").text('Get Ready to Code!');
320 return true;
321 } else {
322 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
323 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
324 );
325 return false;
326 }
327 }
328
329 $(window).hashchange( function(){
330 console.log('hash: '+location.hash);
331 if (location.hash == "") {
332 location.reload();
333 }
334 });
335
Scott Maina1b358a2010-06-24 16:36:54 -0700336</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700337
Scott Maine4d8f1b2012-06-21 18:03:05 -0700338
Scott Maindb3678b2012-10-23 14:13:41 -0700339
340</div><!-- end the wrapper used for relative/absolute positions -->
341<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
342
343
344
345
Scott Main58286dc2011-01-17 18:23:21 -0800346 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700347
Scott Main17e47ad2011-05-27 09:52:19 -0700348 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800349 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
350 Android 3.0 release, to give you a head-start on developing applications for it.
351 </p>
352
353 <p>See the <a
354 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
355 about how to set up the preview SDK and get started.</p>
356 <style type="text/css">
357 .non-preview { display:none; }
358 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700359
360 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700361
362 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
363 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700364 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700365 body .offline { display:block; }
366 body .online { display:none; }
367 </style>
368 <script>
369 $('.reqs').show();
370 </script>
Scott Maincc089092011-01-17 16:44:10 -0800371 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700372
Scott Main58286dc2011-01-17 18:23:21 -0800373 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800374
375<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700376
Scott Maincc089092011-01-17 16:44:10 -0800377<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700378
The Android Open Source Project88b60792009-03-03 19:28:42 -0800379
The Android Open Source Project88b60792009-03-03 19:28:42 -0800380</div><!-- end jd-content -->
381
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700382<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800383<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700384<?cs /if ?>
385
Scott Maincc089092011-01-17 16:44:10 -0800386</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800387
388<?cs include:"trailer.cs" ?>
389
390</body>
391</html>
392
393
394