blob: 4cea11ad0934f2f59ebaa04b0fc7e49e7385c0bb [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>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070082 <th style="white-space:nowrap">Size (Bytes)</th>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070083 <th>MD5 Checksum</th>
84 </tr>
85 <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070086 <td rowspan="2" style="white-space:nowrap">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>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070091 <td><?cs var:ndk.win32_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -070092 <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>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070095 <td>
96 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -070097 href="http://dl.google.com/android/ndk/<?cs var:ndk.win32.legacy_download ?>"><?cs var:ndk.win32.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070098 </td>
99 <td><?cs var:ndk.win32.legacy_bytes ?></td>
100 <td><?cs var:ndk.win32.legacy_checksum ?></td>
101 </tr>
102 <tr>
103 <td rowspan="2" style="white-space:nowrap">Windows 64-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700104 <td>
Scott Main098d8de2012-11-13 11:25:06 -0800105 <a onClick="return onDownload(this)"
Scott Maina2303452013-03-18 11:31:15 -0700106 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 -0700107 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700108 <td><?cs var:ndk.win64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700109 <td><?cs var:ndk.win64_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700110 </tr>
111 <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700112 <td>
113 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700114 href="http://dl.google.com/android/ndk/<?cs var:ndk.win64.legacy_download ?>"><?cs var:ndk.win64.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700115 </td>
116 <td><?cs var:ndk.win64.legacy_bytes ?></td>
117 <td><?cs var:ndk.win64.legacy_checksum ?></td>
118 </tr>
119 <tr>
120 <td rowspan="2" style="white-space:nowrap">Mac OS X 32-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700121 <td>
Scott Main098d8de2012-11-13 11:25:06 -0800122 <a onClick="return onDownload(this)"
Scott Maina2303452013-03-18 11:31:15 -0700123 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 -0700124 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700125 <td><?cs var:ndk.mac32_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700126 <td><?cs var:ndk.mac32_checksum ?></td>
127 </tr>
128 <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700129 <td>
130 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700131 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac32.legacy_download ?>"><?cs var:ndk.mac32.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700132 </td>
133 <td><?cs var:ndk.mac32.legacy_bytes ?></td>
134 <td><?cs var:ndk.mac32.legacy_checksum ?></td>
135 </tr>
136 <tr>
137 <td rowspan="2" style="white-space:nowrap">Mac OS X 64-bit</td>
Scott Maina2303452013-03-18 11:31:15 -0700138 <td>
139 <a onClick="return onDownload(this)"
140 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac64_download ?>"><?cs var:ndk.mac64_download ?></a>
141 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700142 <td><?cs var:ndk.mac64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700143 <td><?cs var:ndk.mac64_checksum ?></td>
144 </tr>
145 <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700146 <td>
147 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700148 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac64.legacy_download ?>"><?cs var:ndk.mac64.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700149 </td>
150 <td><?cs var:ndk.mac64.legacy_bytes ?></td>
151 <td><?cs var:ndk.mac64.legacy_checksum ?></td>
152 </tr>
153
154 <tr>
155 <td rowspan="2" style="white-space:nowrap">Linux 32-bit (x86)</td>
Scott Maina2303452013-03-18 11:31:15 -0700156 <td>
157 <a onClick="return onDownload(this)"
158 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux32_download ?>"><?cs var:ndk.linux32_download ?></a>
159 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700160 <td><?cs var:ndk.linux32_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700161 <td><?cs var:ndk.linux32_checksum ?></td>
162 </tr>
163 <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700164 <td>
165 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700166 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux32.legacy_download ?>"><?cs var:ndk.linux32.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700167 </td>
168 <td><?cs var:ndk.linux32.legacy_bytes ?></td>
169 <td><?cs var:ndk.linux32.legacy_checksum ?></td>
170 </tr>
171 <tr>
172 <td rowspan="2" style="white-space:nowrap">Linux 64-bit (x86)</td>
Scott Maina2303452013-03-18 11:31:15 -0700173 <td>
174 <a onClick="return onDownload(this)"
175 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux64_download ?>"><?cs var:ndk.linux64_download ?></a>
176 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700177 <td><?cs var:ndk.linux64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700178 <td><?cs var:ndk.linux64_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700179 </tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700180 <tr>
181 <td>
182 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700183 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux64.legacy_download ?>"><?cs var:ndk.linux64.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700184 </td>
185 <td><?cs var:ndk.linux64.legacy_bytes ?></td>
186 <td><?cs var:ndk.linux64.legacy_checksum ?></td>
187 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700188 </table>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700189
190 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
191 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700192
Scott Main098d8de2012-11-13 11:25:06 -0800193
194
195<script>
196 function onDownload(link) {
197
198 $("#downloadForRealz").html("Download " + $(link).text());
199 $("#downloadForRealz").attr('href',$(link).attr('href'));
200
201 $("#tos").fadeIn('slow');
202
203 location.hash = "download";
204 return false;
205 }
206
207
208 function onAgreeChecked() {
209 if ($("input#agree").is(":checked")) {
210 $("a#downloadForRealz").removeClass('disabled');
211 } else {
212 $("a#downloadForRealz").addClass('disabled');
213 }
214 }
215
216 function onDownloadNdkForRealz(link) {
217 if ($("input#agree").is(':checked')) {
218 $("#tos").fadeOut('slow');
219
220 $('html, body').animate({
221 scrollTop: $("#Installing").offset().top
222 }, 800, function() {
223 $("#Installing").click();
224 });
225
226 return true;
227 } else {
228 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
229 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
230 );
231 return false;
232 }
233 }
234
235 $(window).hashchange( function(){
236 if (location.hash == "") {
237 location.reload();
238 }
239 });
240
241</script>
242
Scott Maincc089092011-01-17 16:44:10 -0800243 <?cs else ?>
244<?cs # end if NDK ...
245#
246#
247#
248#
249#
250#
251# the following is for the SDK
252#
253# (nested in if/else redirect and if/else NDK)
254#
255#
256#
257#
258?>
Scott Mainb73777e2010-11-22 15:02:01 -0800259 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700260
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800261
Scott Maine4d8f1b2012-06-21 18:03:05 -0700262<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
263<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800264
Scott Maindb3678b2012-10-23 14:13:41 -0700265
266
267
Scott Main55d99832012-11-12 23:03:59 -0800268<h4><a href='' class="expandable"
269 onclick="toggleExpandable(this,'.pax');hideExpandable('.myide,.reqs');return false;"
270 >DOWNLOAD FOR OTHER PLATFORMS</a></h4>
271
272
273<div class="pax col-13 online" style="display:none;margin:0;">
Scott Maindb3678b2012-10-23 14:13:41 -0700274
Scott Main55d99832012-11-12 23:03:59 -0800275
Scott Maindb3678b2012-10-23 14:13:41 -0700276<p class="table-caption"><strong>ADT Bundle</strong></p>
277 <table class="download">
278 <tr>
279 <th>Platform</th>
280 <th>Package</th>
281 <th>Size</th>
282 <th>MD5 Checksum</th>
283 </tr>
284 <tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800285 <td>Windows 32-bit</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700286 <td>
Scott Main11ac05b2012-11-15 14:57:44 -0800287 <a onClick="return onDownload(this)" id="win-bundle32"
288 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 -0700289 </td>
Scott Main11ac05b2012-11-15 14:57:44 -0800290 <td><?cs var:sdk.win32_bundle_bytes ?> bytes</td>
291 <td><?cs var:sdk.win32_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700292 </tr>
293 <tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800294 <td>Windows 64-bit</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700295 <td>
Scott Main11ac05b2012-11-15 14:57:44 -0800296 <a onClick="return onDownload(this)" id="win-bundle64"
297 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 -0700298 </td>
Scott Main11ac05b2012-11-15 14:57:44 -0800299 <td><?cs var:sdk.win64_bundle_bytes ?> bytes</td>
300 <td><?cs var:sdk.win64_bundle_checksum ?></td>
301 </tr>
302 <tr>
303 <td><nobr>Mac OS X 64-bit</nobr></td>
304 <td>
305 <a onClick="return onDownload(this)" id="mac-bundle64"
306 href="http://dl.google.com/android/adt/<?cs var:sdk.mac64_bundle_download ?>"><?cs var:sdk.mac64_bundle_download ?></a>
307 </td>
308 <td><?cs var:sdk.mac64_bundle_bytes ?> bytes</td>
309 <td><?cs var:sdk.mac64_bundle_checksum ?></td>
310 </tr>
311 <tr>
312 <td>Linux 32-bit</td>
313 <td>
314 <a onClick="return onDownload(this)" id="linux-bundle32"
315 href="http://dl.google.com/android/adt/<?cs var:sdk.linux32_bundle_download ?>"><?cs var:sdk.linux32_bundle_download ?></a>
316 </td>
317 <td><?cs var:sdk.linux32_bundle_bytes ?> bytes</td>
318 <td><?cs var:sdk.linux32_bundle_checksum ?></td>
319 </tr>
320 <tr>
321 <td>Linux 64-bit</td>
322 <td>
323 <a onClick="return onDownload(this)" id="linux-bundle64"
324 href="http://dl.google.com/android/adt/<?cs var:sdk.linux64_bundle_download ?>"><?cs var:sdk.linux64_bundle_download ?></a>
325 </td>
326 <td><?cs var:sdk.linux64_bundle_bytes ?> bytes</td>
327 <td><?cs var:sdk.linux64_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700328 </tr>
329 </table>
330
331
332<p class="table-caption"><strong>SDK Tools Only</strong></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800333 <table class="download">
334 <tr>
335 <th>Platform</th>
336 <th>Package</th>
337 <th>Size</th>
338 <th>MD5 Checksum</th>
339 </tr>
340 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700341 <td rowspan="2">Windows<br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800342 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700343 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700344?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800345 </td>
346 <td><?cs var:sdk.win_bytes ?> bytes</td>
347 <td><?cs var:sdk.win_checksum ?></td>
348 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800349 <tr>
350 <!-- blank TD from Windows rowspan -->
351 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700352 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700353var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800354?>"><?cs var:sdk.win_installer ?></a> (Recommended)
355 </td>
356 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
357 <td><?cs var:sdk.win_installer_checksum ?></td>
358 </tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800359 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700360 <td><nobr>Mac OS X</nobr><br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800361 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700362 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700363var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700364?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800365 </td>
366 <td><?cs var:sdk.mac_bytes ?> bytes</td>
367 <td><?cs var:sdk.mac_checksum ?></td>
368 </tr>
369 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700370 <td>Linux<br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800371 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700372 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700373var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700374?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800375 </td>
376 <td><?cs var:sdk.linux_bytes ?> bytes</td>
377 <td><?cs var:sdk.linux_checksum ?></td>
378 </tr>
379 </table>
Scott Maindb3678b2012-10-23 14:13:41 -0700380
Scott Main55d99832012-11-12 23:03:59 -0800381</div><!-- end pax -->
Scott Maindb3678b2012-10-23 14:13:41 -0700382
383
Scott Main55d99832012-11-12 23:03:59 -0800384
385</div><!-- end col-13 for lower-half content -->
Scott Maindb3678b2012-10-23 14:13:41 -0700386
387
Scott Maine4d8f1b2012-06-21 18:03:05 -0700388
389
390<script>
Scott Main55d99832012-11-12 23:03:59 -0800391 if (location.hash == "#Requirements") {
392 $('.reqs').show();
393 } else if (location.hash == "#ExistingIDE") {
394 $('.ide').show();
395 }
Scott Maindb3678b2012-10-23 14:13:41 -0700396
Scott Maine4d8f1b2012-06-21 18:03:05 -0700397 var os;
Scott Main11ac05b2012-11-15 14:57:44 -0800398 var bundlename;
Scott Maindb3678b2012-10-23 14:13:41 -0700399 var $toolslink;
400
Scott Maine4d8f1b2012-06-21 18:03:05 -0700401 if (navigator.appVersion.indexOf("Win")!=-1) {
402 os = "Windows";
Scott Main11ac05b2012-11-15 14:57:44 -0800403 bundlename = '#win-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700404 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700405 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
406 os = "Mac";
Scott Main11ac05b2012-11-15 14:57:44 -0800407 bundlename = '#mac-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700408 $toolslink = $('#mac-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700409 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
410 os = "Linux";
Scott Main11ac05b2012-11-15 14:57:44 -0800411 bundlename = '#linux-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700412 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700413 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800414
Scott Maine4d8f1b2012-06-21 18:03:05 -0700415 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700416 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700417
418 /* set up primary adt download button */
419 $('#download-bundle-button').show();
420 $('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
Scott Main11ac05b2012-11-15 14:57:44 -0800421 $('#download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
Scott Maindb3678b2012-10-23 14:13:41 -0700422
423 /* set up sdk tools only button */
424 $('#download-tools-button').show();
425 $('#download-tools-button').append("Download the SDK Tools for " + os);
Scott Main11ac05b2012-11-15 14:57:44 -0800426 $('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
Scott Maine4d8f1b2012-06-21 18:03:05 -0700427 } else {
428 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700429 }
Scott Main7c05b692012-11-14 14:12:29 -0800430
431
Scott Main11ac05b2012-11-15 14:57:44 -0800432 function onDownload(link, button, bundle) {
433
434 /* set text for download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700435 if (button) {
436 $("#downloadForRealz").html($(link).text());
437 } else {
438 $("#downloadForRealz").html("Download " + $(link).text());
Scott Main11ac05b2012-11-15 14:57:44 -0800439 }
440
441 /* if it's a bundle, show the 32/64-bit picker */
442 if (bundle) {
443 $("#downloadForRealz").attr('bundle','true');
444 if ($("#downloadForRealz").text().indexOf("Mac") == -1) {
445 $("p#bitpicker").show();
446 } else {
447 /* mac is always 64 bit, so set it checked */
448 $("p#bitpicker input[value=64]").attr('checked', true);
449 }
450 /* save link name until the bit version is chosen */
451 $("#downloadForRealz").attr('name',$(link).attr('href'));
452 } else {
453 /* if not using bundle, set download button to ignore bitpicker and set url */
454 $("#downloadForRealz").attr('bundle','false');
455 $("#downloadForRealz").attr('href',$(link).attr('href'));
456 /* set picker checked as a fake default */
457 $("p#bitpicker input[value=64]").attr('checked', true);
Scott Maindb3678b2012-10-23 14:13:41 -0700458 $("a#next-link").html("Setting Up an Existing IDE").attr('href',toRoot + 'sdk/installing/index.html');
459 }
Scott Maindb3678b2012-10-23 14:13:41 -0700460
461 $("#tos").fadeIn('fast');
462 $("#landing").fadeOut('fast');
463
464 location.hash = "download";
465 return false;
466 }
467
468
469 function onAgreeChecked() {
Scott Main11ac05b2012-11-15 14:57:44 -0800470 /* verify that the TOS is agreed and a bit version is chosen */
471 if ($("input#agree").is(":checked") && $("#bitpicker input:checked").length) {
472
473 /* if downloading the bundle */
474 if ($("#downloadForRealz").attr('bundle')) {
475 /* construct the name of the link we want based on the bit version */
476 linkId = $("a#downloadForRealz").attr("name") + $("#bitpicker input:checked").val();
477 /* set the real url for download */
478 $("a#downloadForRealz").attr("href", $(linkId).attr("href"));
479 }
480
481 /* reveal the download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700482 $("a#downloadForRealz").removeClass('disabled');
483 } else {
484 $("a#downloadForRealz").addClass('disabled');
485 }
486 }
487
488 function onDownloadForRealz(link) {
Scott Main11ac05b2012-11-15 14:57:44 -0800489 if ($("input#agree").is(':checked') && $("#bitpicker input:checked").length) {
Scott Maindb3678b2012-10-23 14:13:41 -0700490 $("div.sdk-terms").slideUp();
491 $("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow');
492 $("#next-steps").fadeIn('slow');
493 $("h1#tos-header").text('Get Ready to Code!');
Scott Mainc9418f42013-11-20 12:52:22 -0800494 _gaq.push(['_trackEvent', 'SDK', 'ADT and Tools', $("#downloadForRealz").html()]);
Scott Maindb3678b2012-10-23 14:13:41 -0700495 return true;
496 } else {
Scott Main11ac05b2012-11-15 14:57:44 -0800497 $("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,
498 function() {$("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#222"}, 200)}
Scott Maindb3678b2012-10-23 14:13:41 -0700499 );
500 return false;
501 }
502 }
503
504 $(window).hashchange( function(){
Scott Maindb3678b2012-10-23 14:13:41 -0700505 if (location.hash == "") {
506 location.reload();
507 }
508 });
509
Scott Maina1b358a2010-06-24 16:36:54 -0700510</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700511
Scott Maine4d8f1b2012-06-21 18:03:05 -0700512
Scott Maindb3678b2012-10-23 14:13:41 -0700513
514</div><!-- end the wrapper used for relative/absolute positions -->
515<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
516
517
518
519
Scott Main58286dc2011-01-17 18:23:21 -0800520 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700521
Scott Main17e47ad2011-05-27 09:52:19 -0700522 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800523 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
524 Android 3.0 release, to give you a head-start on developing applications for it.
525 </p>
526
527 <p>See the <a
528 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
529 about how to set up the preview SDK and get started.</p>
530 <style type="text/css">
531 .non-preview { display:none; }
532 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700533
534 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700535
536 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
537 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700538 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700539 body .offline { display:block; }
540 body .online { display:none; }
541 </style>
542 <script>
543 $('.reqs').show();
544 </script>
Scott Maincc089092011-01-17 16:44:10 -0800545 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700546
Scott Main58286dc2011-01-17 18:23:21 -0800547 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800548
549<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700550
Scott Maincc089092011-01-17 16:44:10 -0800551<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700552
The Android Open Source Project88b60792009-03-03 19:28:42 -0800553
The Android Open Source Project88b60792009-03-03 19:28:42 -0800554</div><!-- end jd-content -->
555
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700556<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800557<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700558<?cs /if ?>
559
Scott Maincc089092011-01-17 16:44:10 -0800560</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800561
562<?cs include:"trailer.cs" ?>
563
Dirk Dougherty8f6949b2013-12-03 18:49:24 -0800564<!-- Start of Tag -->
565<script type="text/javascript">
566var axel = Math.random() + "";
567var a = axel * 10000000000000;
568document.write('<iframe src="https://2507573.fls.doubleclick.net/activityi;src=2507573;type=other026;cat=googl348;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
569</script>
570<noscript>
571<iframe src="https://2507573.fls.doubleclick.net/activityi;src=2507573;type=other026;cat=googl348;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
572</noscript>
573<!-- End of Tag -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800574</body>
575</html>
576
577
578