blob: 3ebf69784d54e6bbb046c7c3d6d60641093e14c6 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
Scott Maine05e6f92013-01-29 13:34:17 -08003<html<?cs if:devsite ?> devsite<?cs /if ?>>
The Android Open Source Project88b60792009-03-03 19:28:42 -08004<?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 </head>
11<?cs else ?>
12 <?cs include:"head_tag.cs" ?>
13<?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070014<body class="gc-documentation
15 <?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
16 elif:design ?>design<?cs
17 elif:distribute ?>distribute<?cs
18 /if ?>" itemscope itemtype="http://schema.org/CreativeWork">
19 <a name="top"></a>
20<?cs include:"header.cs" ?>
The Android Open Source Project88b60792009-03-03 19:28:42 -080021
Scott Maine4d8f1b2012-06-21 18:03:05 -070022
23<div <?cs if:fullpage
24?><?cs else
25?>class="col-13" id="doc-col"<?cs /if ?> >
The Android Open Source Project88b60792009-03-03 19:28:42 -080026
The Android Open Source Project88b60792009-03-03 19:28:42 -080027<?cs if:sdk.redirect ?>
Dirk Doughertyd8cfce02009-07-15 16:37:21 -070028
Dirk Dougherty19a4bd12009-04-24 11:30:32 -070029<div class="g-unit">
30 <div id="jd-content">
Scott Maincc089092011-01-17 16:44:10 -080031 <p>Redirecting to
32 <a href="<?cs var:toroot ?>sdk/<?cs
Scott Mainb66a5c02010-07-08 11:29:28 -070033 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
34 else ?>index.html<?cs /if ?>"><?cs
35 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
36 else ?>Download the SDK<?cs /if ?>
Dirk Doughertyd8cfce02009-07-15 16:37:21 -070037 </a> ...</p>
Scott Maincc089092011-01-17 16:44:10 -080038
The Android Open Source Project88b60792009-03-03 19:28:42 -080039<?cs else ?>
Scott Maincc089092011-01-17 16:44:10 -080040<?cs # else, if NOT redirect ...
41#
42#
43# The following is for SDK/NDK pages
44#
45#
46?>
47
Scott Maine4d8f1b2012-06-21 18:03:05 -070048<?cs if:header.hide ?><?cs else ?>
49<h1 itemprop="name"><?cs var:page.title ?></h1>
50<?cs /if ?>
Scott Main3652a112012-01-30 13:03:08 -080051 <div id="jd-content" itemprop="description">
The Android Open Source Project88b60792009-03-03 19:28:42 -080052
53<?cs if:sdk.not_latest_version ?>
54 <div class="special">
55 <p><strong>This is NOT the current Android SDK release.</strong></p>
Dirk Dougherty3d3d7b72009-10-21 19:52:52 -070056 <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -080057 </div>
58<?cs /if ?>
Dirk Doughertye6be85f2009-06-24 11:01:03 -070059
The Android Open Source Project88b60792009-03-03 19:28:42 -080060
Scott Maincc089092011-01-17 16:44:10 -080061<?cs if:ndk ?>
62<?cs #
63#
64#
65#
66#
67#
68#
69# the following is for the NDK
70#
71# (nested in if/else redirect)
72#
73#
74#
75#
76?>
The Android Open Source Project88b60792009-03-03 19:28:42 -080077
Scott Main25659b02012-06-22 17:02:25 -070078 <table class="download" id="download-table">
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070079 <tr>
80 <th>Platform</th>
81 <th>Package</th>
82 <th>Size</th>
83 <th>MD5 Checksum</th>
84 </tr>
85 <tr>
Scott Maina2303452013-03-18 11:31:15 -070086 <td>Windows 32-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070087 <td>
Scott Main098d8de2012-11-13 11:25:06 -080088 <a onClick="return onDownload(this)"
Scott Maina2303452013-03-18 11:31:15 -070089 href="http://dl.google.com/android/ndk/<?cs var:ndk.win32_download ?>"><?cs var:ndk.win32_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070090 </td>
Scott Maina2303452013-03-18 11:31:15 -070091 <td><?cs var:ndk.win32_bytes ?> bytes</td>
92 <td><?cs var:ndk.win32_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070093 </tr>
Scott Main11ac05b2012-11-15 14:57:44 -080094 <tr>
Scott Maina2303452013-03-18 11:31:15 -070095 <td>Windows 64-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070096 <td>
Scott Main098d8de2012-11-13 11:25:06 -080097 <a onClick="return onDownload(this)"
Scott Maina2303452013-03-18 11:31:15 -070098 href="http://dl.google.com/android/ndk/<?cs var:ndk.win64_download ?>"><?cs var:ndk.win64_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070099 </td>
Scott Maina2303452013-03-18 11:31:15 -0700100 <td><?cs var:ndk.win64_bytes ?> bytes</td>
101 <td><?cs var:ndk.win64_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700102 </tr>
103 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700104 <td>Mac OS X 32-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700105 <td>
Scott Main098d8de2012-11-13 11:25:06 -0800106 <a onClick="return onDownload(this)"
Scott Maina2303452013-03-18 11:31:15 -0700107 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac32_download ?>"><?cs var:ndk.mac32_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700108 </td>
Scott Maina2303452013-03-18 11:31:15 -0700109 <td><?cs var:ndk.mac32_bytes ?> bytes</td>
110 <td><?cs var:ndk.mac32_checksum ?></td>
111 </tr>
112 <tr>
113 <td>Mac OS X 64-bit</td>
114 <td>
115 <a onClick="return onDownload(this)"
116 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac64_download ?>"><?cs var:ndk.mac64_download ?></a>
117 </td>
118 <td><?cs var:ndk.mac64_bytes ?> bytes</td>
119 <td><?cs var:ndk.mac64_checksum ?></td>
120 </tr>
121 <tr>
122 <td>Linux 32-bit (x86)</td>
123 <td>
124 <a onClick="return onDownload(this)"
125 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux32_download ?>"><?cs var:ndk.linux32_download ?></a>
126 </td>
127 <td><?cs var:ndk.linux32_bytes ?> bytes</td>
128 <td><?cs var:ndk.linux32_checksum ?></td>
129 </tr>
130 <tr>
131 <td>Linux 64-bit (x86)</td>
132 <td>
133 <a onClick="return onDownload(this)"
134 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux64_download ?>"><?cs var:ndk.linux64_download ?></a>
135 </td>
136 <td><?cs var:ndk.linux64_bytes ?> bytes</td>
137 <td><?cs var:ndk.linux64_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700138 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700139 </table>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700140
141 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
142 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700143
Scott Main098d8de2012-11-13 11:25:06 -0800144
145
146<script>
147 function onDownload(link) {
148
149 $("#downloadForRealz").html("Download " + $(link).text());
150 $("#downloadForRealz").attr('href',$(link).attr('href'));
151
152 $("#tos").fadeIn('slow');
153
154 location.hash = "download";
155 return false;
156 }
157
158
159 function onAgreeChecked() {
160 if ($("input#agree").is(":checked")) {
161 $("a#downloadForRealz").removeClass('disabled');
162 } else {
163 $("a#downloadForRealz").addClass('disabled');
164 }
165 }
166
167 function onDownloadNdkForRealz(link) {
168 if ($("input#agree").is(':checked')) {
169 $("#tos").fadeOut('slow');
170
171 $('html, body').animate({
172 scrollTop: $("#Installing").offset().top
173 }, 800, function() {
174 $("#Installing").click();
175 });
176
177 return true;
178 } else {
179 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
180 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
181 );
182 return false;
183 }
184 }
185
186 $(window).hashchange( function(){
187 if (location.hash == "") {
188 location.reload();
189 }
190 });
191
192</script>
193
Scott Maincc089092011-01-17 16:44:10 -0800194 <?cs else ?>
195<?cs # end if NDK ...
196#
197#
198#
199#
200#
201#
202# the following is for the SDK
203#
204# (nested in if/else redirect and if/else NDK)
205#
206#
207#
208#
209?>
Scott Mainb73777e2010-11-22 15:02:01 -0800210 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700211
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800212
Scott Maine4d8f1b2012-06-21 18:03:05 -0700213<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
214<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800215
Scott Maindb3678b2012-10-23 14:13:41 -0700216
217
218
Scott Main55d99832012-11-12 23:03:59 -0800219<h4><a href='' class="expandable"
220 onclick="toggleExpandable(this,'.pax');hideExpandable('.myide,.reqs');return false;"
221 >DOWNLOAD FOR OTHER PLATFORMS</a></h4>
222
223
224<div class="pax col-13 online" style="display:none;margin:0;">
Scott Maindb3678b2012-10-23 14:13:41 -0700225
Scott Main55d99832012-11-12 23:03:59 -0800226
Scott Maindb3678b2012-10-23 14:13:41 -0700227<p class="table-caption"><strong>ADT Bundle</strong></p>
228 <table class="download">
229 <tr>
230 <th>Platform</th>
231 <th>Package</th>
232 <th>Size</th>
233 <th>MD5 Checksum</th>
234 </tr>
235 <tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800236 <td>Windows 32-bit</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700237 <td>
Scott Main11ac05b2012-11-15 14:57:44 -0800238 <a onClick="return onDownload(this)" id="win-bundle32"
239 href="http://dl.google.com/android/adt/<?cs var:sdk.win32_bundle_download ?>"><?cs var:sdk.win32_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700240 </td>
Scott Main11ac05b2012-11-15 14:57:44 -0800241 <td><?cs var:sdk.win32_bundle_bytes ?> bytes</td>
242 <td><?cs var:sdk.win32_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700243 </tr>
244 <tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800245 <td>Windows 64-bit</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700246 <td>
Scott Main11ac05b2012-11-15 14:57:44 -0800247 <a onClick="return onDownload(this)" id="win-bundle64"
248 href="http://dl.google.com/android/adt/<?cs var:sdk.win64_bundle_download ?>"><?cs var:sdk.win64_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700249 </td>
Scott Main11ac05b2012-11-15 14:57:44 -0800250 <td><?cs var:sdk.win64_bundle_bytes ?> bytes</td>
251 <td><?cs var:sdk.win64_bundle_checksum ?></td>
252 </tr>
253 <tr>
254 <td><nobr>Mac OS X 64-bit</nobr></td>
255 <td>
256 <a onClick="return onDownload(this)" id="mac-bundle64"
257 href="http://dl.google.com/android/adt/<?cs var:sdk.mac64_bundle_download ?>"><?cs var:sdk.mac64_bundle_download ?></a>
258 </td>
259 <td><?cs var:sdk.mac64_bundle_bytes ?> bytes</td>
260 <td><?cs var:sdk.mac64_bundle_checksum ?></td>
261 </tr>
262 <tr>
263 <td>Linux 32-bit</td>
264 <td>
265 <a onClick="return onDownload(this)" id="linux-bundle32"
266 href="http://dl.google.com/android/adt/<?cs var:sdk.linux32_bundle_download ?>"><?cs var:sdk.linux32_bundle_download ?></a>
267 </td>
268 <td><?cs var:sdk.linux32_bundle_bytes ?> bytes</td>
269 <td><?cs var:sdk.linux32_bundle_checksum ?></td>
270 </tr>
271 <tr>
272 <td>Linux 64-bit</td>
273 <td>
274 <a onClick="return onDownload(this)" id="linux-bundle64"
275 href="http://dl.google.com/android/adt/<?cs var:sdk.linux64_bundle_download ?>"><?cs var:sdk.linux64_bundle_download ?></a>
276 </td>
277 <td><?cs var:sdk.linux64_bundle_bytes ?> bytes</td>
278 <td><?cs var:sdk.linux64_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700279 </tr>
280 </table>
281
282
283<p class="table-caption"><strong>SDK Tools Only</strong></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800284 <table class="download">
285 <tr>
286 <th>Platform</th>
287 <th>Package</th>
288 <th>Size</th>
289 <th>MD5 Checksum</th>
290 </tr>
291 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700292 <td rowspan="2">Windows<br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800293 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700294 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700295?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800296 </td>
297 <td><?cs var:sdk.win_bytes ?> bytes</td>
298 <td><?cs var:sdk.win_checksum ?></td>
299 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800300 <tr>
301 <!-- blank TD from Windows rowspan -->
302 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700303 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700304var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800305?>"><?cs var:sdk.win_installer ?></a> (Recommended)
306 </td>
307 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
308 <td><?cs var:sdk.win_installer_checksum ?></td>
309 </tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800310 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700311 <td><nobr>Mac OS X</nobr><br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800312 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700313 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700314var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700315?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800316 </td>
317 <td><?cs var:sdk.mac_bytes ?> bytes</td>
318 <td><?cs var:sdk.mac_checksum ?></td>
319 </tr>
320 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700321 <td>Linux<br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800322 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700323 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700324var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700325?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800326 </td>
327 <td><?cs var:sdk.linux_bytes ?> bytes</td>
328 <td><?cs var:sdk.linux_checksum ?></td>
329 </tr>
330 </table>
Scott Maindb3678b2012-10-23 14:13:41 -0700331
Scott Main55d99832012-11-12 23:03:59 -0800332</div><!-- end pax -->
Scott Maindb3678b2012-10-23 14:13:41 -0700333
334
Scott Main55d99832012-11-12 23:03:59 -0800335
336</div><!-- end col-13 for lower-half content -->
Scott Maindb3678b2012-10-23 14:13:41 -0700337
338
Scott Maine4d8f1b2012-06-21 18:03:05 -0700339
340
341<script>
Scott Main55d99832012-11-12 23:03:59 -0800342 if (location.hash == "#Requirements") {
343 $('.reqs').show();
344 } else if (location.hash == "#ExistingIDE") {
345 $('.ide').show();
346 }
Scott Maindb3678b2012-10-23 14:13:41 -0700347
Scott Maine4d8f1b2012-06-21 18:03:05 -0700348 var os;
Scott Main11ac05b2012-11-15 14:57:44 -0800349 var bundlename;
Scott Maindb3678b2012-10-23 14:13:41 -0700350 var $toolslink;
351
Scott Maine4d8f1b2012-06-21 18:03:05 -0700352 if (navigator.appVersion.indexOf("Win")!=-1) {
353 os = "Windows";
Scott Main11ac05b2012-11-15 14:57:44 -0800354 bundlename = '#win-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700355 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700356 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
357 os = "Mac";
Scott Main11ac05b2012-11-15 14:57:44 -0800358 bundlename = '#mac-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700359 $toolslink = $('#mac-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700360 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
361 os = "Linux";
Scott Main11ac05b2012-11-15 14:57:44 -0800362 bundlename = '#linux-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700363 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700364 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800365
Scott Maine4d8f1b2012-06-21 18:03:05 -0700366 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700367 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700368
369 /* set up primary adt download button */
370 $('#download-bundle-button').show();
371 $('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
Scott Main11ac05b2012-11-15 14:57:44 -0800372 $('#download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
Scott Maindb3678b2012-10-23 14:13:41 -0700373
374 /* set up sdk tools only button */
375 $('#download-tools-button').show();
376 $('#download-tools-button').append("Download the SDK Tools for " + os);
Scott Main11ac05b2012-11-15 14:57:44 -0800377 $('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
Scott Maine4d8f1b2012-06-21 18:03:05 -0700378 } else {
379 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700380 }
Scott Main7c05b692012-11-14 14:12:29 -0800381
382
Scott Main11ac05b2012-11-15 14:57:44 -0800383 function onDownload(link, button, bundle) {
384
385 /* set text for download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700386 if (button) {
387 $("#downloadForRealz").html($(link).text());
388 } else {
389 $("#downloadForRealz").html("Download " + $(link).text());
Scott Main11ac05b2012-11-15 14:57:44 -0800390 }
391
392 /* if it's a bundle, show the 32/64-bit picker */
393 if (bundle) {
394 $("#downloadForRealz").attr('bundle','true');
395 if ($("#downloadForRealz").text().indexOf("Mac") == -1) {
396 $("p#bitpicker").show();
397 } else {
398 /* mac is always 64 bit, so set it checked */
399 $("p#bitpicker input[value=64]").attr('checked', true);
400 }
401 /* save link name until the bit version is chosen */
402 $("#downloadForRealz").attr('name',$(link).attr('href'));
403 } else {
404 /* if not using bundle, set download button to ignore bitpicker and set url */
405 $("#downloadForRealz").attr('bundle','false');
406 $("#downloadForRealz").attr('href',$(link).attr('href'));
407 /* set picker checked as a fake default */
408 $("p#bitpicker input[value=64]").attr('checked', true);
Scott Maindb3678b2012-10-23 14:13:41 -0700409 $("a#next-link").html("Setting Up an Existing IDE").attr('href',toRoot + 'sdk/installing/index.html');
410 }
Scott Maindb3678b2012-10-23 14:13:41 -0700411
412 $("#tos").fadeIn('fast');
413 $("#landing").fadeOut('fast');
414
415 location.hash = "download";
416 return false;
417 }
418
419
420 function onAgreeChecked() {
Scott Main11ac05b2012-11-15 14:57:44 -0800421 /* verify that the TOS is agreed and a bit version is chosen */
422 if ($("input#agree").is(":checked") && $("#bitpicker input:checked").length) {
423
424 /* if downloading the bundle */
425 if ($("#downloadForRealz").attr('bundle')) {
426 /* construct the name of the link we want based on the bit version */
427 linkId = $("a#downloadForRealz").attr("name") + $("#bitpicker input:checked").val();
428 /* set the real url for download */
429 $("a#downloadForRealz").attr("href", $(linkId).attr("href"));
430 }
431
432 /* reveal the download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700433 $("a#downloadForRealz").removeClass('disabled');
434 } else {
435 $("a#downloadForRealz").addClass('disabled');
436 }
437 }
438
439 function onDownloadForRealz(link) {
Scott Main11ac05b2012-11-15 14:57:44 -0800440 if ($("input#agree").is(':checked') && $("#bitpicker input:checked").length) {
Scott Maindb3678b2012-10-23 14:13:41 -0700441 $("div.sdk-terms").slideUp();
442 $("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow');
443 $("#next-steps").fadeIn('slow');
444 $("h1#tos-header").text('Get Ready to Code!');
445 return true;
446 } else {
Scott Main11ac05b2012-11-15 14:57:44 -0800447 $("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,
448 function() {$("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#222"}, 200)}
Scott Maindb3678b2012-10-23 14:13:41 -0700449 );
450 return false;
451 }
452 }
453
454 $(window).hashchange( function(){
Scott Maindb3678b2012-10-23 14:13:41 -0700455 if (location.hash == "") {
456 location.reload();
457 }
458 });
459
Scott Maina1b358a2010-06-24 16:36:54 -0700460</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700461
Scott Maine4d8f1b2012-06-21 18:03:05 -0700462
Scott Maindb3678b2012-10-23 14:13:41 -0700463
464</div><!-- end the wrapper used for relative/absolute positions -->
465<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
466
467
468
469
Scott Main58286dc2011-01-17 18:23:21 -0800470 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700471
Scott Main17e47ad2011-05-27 09:52:19 -0700472 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800473 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
474 Android 3.0 release, to give you a head-start on developing applications for it.
475 </p>
476
477 <p>See the <a
478 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
479 about how to set up the preview SDK and get started.</p>
480 <style type="text/css">
481 .non-preview { display:none; }
482 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700483
484 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700485
486 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
487 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700488 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700489 body .offline { display:block; }
490 body .online { display:none; }
491 </style>
492 <script>
493 $('.reqs').show();
494 </script>
Scott Maincc089092011-01-17 16:44:10 -0800495 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700496
Scott Main58286dc2011-01-17 18:23:21 -0800497 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800498
499<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700500
Scott Maincc089092011-01-17 16:44:10 -0800501<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700502
The Android Open Source Project88b60792009-03-03 19:28:42 -0800503
The Android Open Source Project88b60792009-03-03 19:28:42 -0800504</div><!-- end jd-content -->
505
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700506<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800507<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700508<?cs /if ?>
509
Scott Maincc089092011-01-17 16:44:10 -0800510</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800511
512<?cs include:"trailer.cs" ?>
513
514</body>
515</html>
516
517
518