blob: d98146ad181a6a6948a457c7e3ce29439065415e [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>
David Friedman612a88b2013-12-06 02:23:14 -080086 <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>
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>
David Friedman612a88b2013-12-06 02:23:14 -080094 <!-- <tr>
95 <td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070096 <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>
David Friedman612a88b2013-12-06 02:23:14 -0800101 </tr> -->
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700102 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800103 <td>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>
David Friedman612a88b2013-12-06 02:23:14 -0800110 </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>
David Friedman612a88b2013-12-06 02:23:14 -0800118 </tr> -->
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700119 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800120 <td>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>
David Friedman612a88b2013-12-06 02:23:14 -0800128 <!-- <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>
David Friedman612a88b2013-12-06 02:23:14 -0800135 </tr> -->
136 <td>Mac OS X 64-bit</td>
Scott Maina2303452013-03-18 11:31:15 -0700137 <td>
138 <a onClick="return onDownload(this)"
139 href="http://dl.google.com/android/ndk/<?cs var:ndk.mac64_download ?>"><?cs var:ndk.mac64_download ?></a>
140 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700141 <td><?cs var:ndk.mac64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700142 <td><?cs var:ndk.mac64_checksum ?></td>
143 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800144 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700145 <td>
146 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700147 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 -0700148 </td>
149 <td><?cs var:ndk.mac64.legacy_bytes ?></td>
150 <td><?cs var:ndk.mac64.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800151 </tr> -->
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700152 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800153 <td>Linux 32-bit (x86)</td>
Scott Maina2303452013-03-18 11:31:15 -0700154 <td>
155 <a onClick="return onDownload(this)"
156 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux32_download ?>"><?cs var:ndk.linux32_download ?></a>
157 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700158 <td><?cs var:ndk.linux32_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700159 <td><?cs var:ndk.linux32_checksum ?></td>
160 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800161 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700162 <td>
163 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700164 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 -0700165 </td>
166 <td><?cs var:ndk.linux32.legacy_bytes ?></td>
167 <td><?cs var:ndk.linux32.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800168 </tr> -->
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700169 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800170 <td>Linux 64-bit (x86)</td>
Scott Maina2303452013-03-18 11:31:15 -0700171 <td>
172 <a onClick="return onDownload(this)"
173 href="http://dl.google.com/android/ndk/<?cs var:ndk.linux64_download ?>"><?cs var:ndk.linux64_download ?></a>
174 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700175 <td><?cs var:ndk.linux64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700176 <td><?cs var:ndk.linux64_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700177 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800178 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700179 <td>
180 <a onClick="return onDownload(this)"
Joe Fernandez8d936902013-07-25 17:05:06 -0700181 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 -0700182 </td>
183 <td><?cs var:ndk.linux64.legacy_bytes ?></td>
184 <td><?cs var:ndk.linux64.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800185 </tr> -->
186 <tr>
187 <th>Additional Download</th>
188 <th>Package</th>
189 <th style="white-space:nowrap">Size (Bytes)</th>
190 <th>MD5 Checksum</th>
191 </tr>
192 <tr>
193 <td>STL debug info</td>
194 <td>
195 <a onClick="return onDownload(this)"
196 href="http://dl.google.com/android/ndk/<?cs var:ndk.debug_info_download ?>"><?cs var:ndk.debug_info_download ?></a>
197 </td>
198 <td><?cs var:ndk.debug_info_bytes ?></td>
199 <td><?cs var:ndk.debug_info_checksum ?></td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700200 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700201 </table>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700202
203 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
204 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700205
Scott Main098d8de2012-11-13 11:25:06 -0800206
207
208<script>
209 function onDownload(link) {
210
211 $("#downloadForRealz").html("Download " + $(link).text());
212 $("#downloadForRealz").attr('href',$(link).attr('href'));
213
214 $("#tos").fadeIn('slow');
215
216 location.hash = "download";
217 return false;
218 }
219
220
221 function onAgreeChecked() {
222 if ($("input#agree").is(":checked")) {
223 $("a#downloadForRealz").removeClass('disabled');
224 } else {
225 $("a#downloadForRealz").addClass('disabled');
226 }
227 }
228
229 function onDownloadNdkForRealz(link) {
230 if ($("input#agree").is(':checked')) {
231 $("#tos").fadeOut('slow');
232
233 $('html, body').animate({
234 scrollTop: $("#Installing").offset().top
235 }, 800, function() {
236 $("#Installing").click();
237 });
238
239 return true;
240 } else {
241 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
242 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
243 );
244 return false;
245 }
246 }
247
248 $(window).hashchange( function(){
249 if (location.hash == "") {
250 location.reload();
251 }
252 });
253
254</script>
255
Scott Maincc089092011-01-17 16:44:10 -0800256 <?cs else ?>
257<?cs # end if NDK ...
258#
259#
260#
261#
262#
263#
264# the following is for the SDK
265#
266# (nested in if/else redirect and if/else NDK)
267#
268#
269#
270#
271?>
Scott Mainb73777e2010-11-22 15:02:01 -0800272 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700273
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800274
Scott Maine4d8f1b2012-06-21 18:03:05 -0700275<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
276<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800277
Scott Maindb3678b2012-10-23 14:13:41 -0700278
279
280
Scott Main55d99832012-11-12 23:03:59 -0800281<h4><a href='' class="expandable"
282 onclick="toggleExpandable(this,'.pax');hideExpandable('.myide,.reqs');return false;"
283 >DOWNLOAD FOR OTHER PLATFORMS</a></h4>
284
285
286<div class="pax col-13 online" style="display:none;margin:0;">
Scott Maindb3678b2012-10-23 14:13:41 -0700287
Scott Main55d99832012-11-12 23:03:59 -0800288
Scott Maindb3678b2012-10-23 14:13:41 -0700289<p class="table-caption"><strong>ADT Bundle</strong></p>
290 <table class="download">
291 <tr>
292 <th>Platform</th>
293 <th>Package</th>
294 <th>Size</th>
295 <th>MD5 Checksum</th>
296 </tr>
297 <tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800298 <td>Windows 32-bit</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700299 <td>
Scott Main11ac05b2012-11-15 14:57:44 -0800300 <a onClick="return onDownload(this)" id="win-bundle32"
301 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 -0700302 </td>
Scott Main11ac05b2012-11-15 14:57:44 -0800303 <td><?cs var:sdk.win32_bundle_bytes ?> bytes</td>
304 <td><?cs var:sdk.win32_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700305 </tr>
306 <tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800307 <td>Windows 64-bit</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700308 <td>
Scott Main11ac05b2012-11-15 14:57:44 -0800309 <a onClick="return onDownload(this)" id="win-bundle64"
310 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 -0700311 </td>
Scott Main11ac05b2012-11-15 14:57:44 -0800312 <td><?cs var:sdk.win64_bundle_bytes ?> bytes</td>
313 <td><?cs var:sdk.win64_bundle_checksum ?></td>
314 </tr>
315 <tr>
316 <td><nobr>Mac OS X 64-bit</nobr></td>
317 <td>
318 <a onClick="return onDownload(this)" id="mac-bundle64"
319 href="http://dl.google.com/android/adt/<?cs var:sdk.mac64_bundle_download ?>"><?cs var:sdk.mac64_bundle_download ?></a>
320 </td>
321 <td><?cs var:sdk.mac64_bundle_bytes ?> bytes</td>
322 <td><?cs var:sdk.mac64_bundle_checksum ?></td>
323 </tr>
324 <tr>
325 <td>Linux 32-bit</td>
326 <td>
327 <a onClick="return onDownload(this)" id="linux-bundle32"
328 href="http://dl.google.com/android/adt/<?cs var:sdk.linux32_bundle_download ?>"><?cs var:sdk.linux32_bundle_download ?></a>
329 </td>
330 <td><?cs var:sdk.linux32_bundle_bytes ?> bytes</td>
331 <td><?cs var:sdk.linux32_bundle_checksum ?></td>
332 </tr>
333 <tr>
334 <td>Linux 64-bit</td>
335 <td>
336 <a onClick="return onDownload(this)" id="linux-bundle64"
337 href="http://dl.google.com/android/adt/<?cs var:sdk.linux64_bundle_download ?>"><?cs var:sdk.linux64_bundle_download ?></a>
338 </td>
339 <td><?cs var:sdk.linux64_bundle_bytes ?> bytes</td>
340 <td><?cs var:sdk.linux64_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700341 </tr>
342 </table>
343
344
345<p class="table-caption"><strong>SDK Tools Only</strong></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800346 <table class="download">
347 <tr>
348 <th>Platform</th>
349 <th>Package</th>
350 <th>Size</th>
351 <th>MD5 Checksum</th>
352 </tr>
353 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700354 <td rowspan="2">Windows<br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800355 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700356 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700357?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800358 </td>
359 <td><?cs var:sdk.win_bytes ?> bytes</td>
360 <td><?cs var:sdk.win_checksum ?></td>
361 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800362 <tr>
363 <!-- blank TD from Windows rowspan -->
364 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700365 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700366var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800367?>"><?cs var:sdk.win_installer ?></a> (Recommended)
368 </td>
369 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
370 <td><?cs var:sdk.win_installer_checksum ?></td>
371 </tr>
Scott Main11ac05b2012-11-15 14:57:44 -0800372 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700373 <td><nobr>Mac OS X</nobr><br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800374 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700375 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700376var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700377?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800378 </td>
379 <td><?cs var:sdk.mac_bytes ?> bytes</td>
380 <td><?cs var:sdk.mac_checksum ?></td>
381 </tr>
382 <tr>
Scott Maina2303452013-03-18 11:31:15 -0700383 <td>Linux<br>32 &amp; 64-bit</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800384 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700385 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700386var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700387?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800388 </td>
389 <td><?cs var:sdk.linux_bytes ?> bytes</td>
390 <td><?cs var:sdk.linux_checksum ?></td>
391 </tr>
392 </table>
Scott Maindb3678b2012-10-23 14:13:41 -0700393
Scott Main55d99832012-11-12 23:03:59 -0800394</div><!-- end pax -->
Scott Maindb3678b2012-10-23 14:13:41 -0700395
396
Scott Main55d99832012-11-12 23:03:59 -0800397
398</div><!-- end col-13 for lower-half content -->
Scott Maindb3678b2012-10-23 14:13:41 -0700399
400
Scott Maine4d8f1b2012-06-21 18:03:05 -0700401
402
403<script>
Scott Main55d99832012-11-12 23:03:59 -0800404 if (location.hash == "#Requirements") {
405 $('.reqs').show();
406 } else if (location.hash == "#ExistingIDE") {
407 $('.ide').show();
408 }
Scott Maindb3678b2012-10-23 14:13:41 -0700409
Scott Maine4d8f1b2012-06-21 18:03:05 -0700410 var os;
Scott Main11ac05b2012-11-15 14:57:44 -0800411 var bundlename;
Scott Maindb3678b2012-10-23 14:13:41 -0700412 var $toolslink;
413
Scott Maine4d8f1b2012-06-21 18:03:05 -0700414 if (navigator.appVersion.indexOf("Win")!=-1) {
415 os = "Windows";
Scott Main11ac05b2012-11-15 14:57:44 -0800416 bundlename = '#win-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700417 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700418 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
419 os = "Mac";
Scott Main11ac05b2012-11-15 14:57:44 -0800420 bundlename = '#mac-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700421 $toolslink = $('#mac-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700422 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
423 os = "Linux";
Scott Main11ac05b2012-11-15 14:57:44 -0800424 bundlename = '#linux-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700425 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700426 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800427
Scott Maine4d8f1b2012-06-21 18:03:05 -0700428 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700429 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700430
431 /* set up primary adt download button */
432 $('#download-bundle-button').show();
433 $('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
Scott Main11ac05b2012-11-15 14:57:44 -0800434 $('#download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
Scott Maindb3678b2012-10-23 14:13:41 -0700435
436 /* set up sdk tools only button */
437 $('#download-tools-button').show();
438 $('#download-tools-button').append("Download the SDK Tools for " + os);
Scott Main11ac05b2012-11-15 14:57:44 -0800439 $('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
Scott Maine4d8f1b2012-06-21 18:03:05 -0700440 } else {
441 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700442 }
Scott Main7c05b692012-11-14 14:12:29 -0800443
444
Scott Main11ac05b2012-11-15 14:57:44 -0800445 function onDownload(link, button, bundle) {
446
447 /* set text for download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700448 if (button) {
449 $("#downloadForRealz").html($(link).text());
450 } else {
451 $("#downloadForRealz").html("Download " + $(link).text());
Scott Main11ac05b2012-11-15 14:57:44 -0800452 }
453
454 /* if it's a bundle, show the 32/64-bit picker */
455 if (bundle) {
456 $("#downloadForRealz").attr('bundle','true');
457 if ($("#downloadForRealz").text().indexOf("Mac") == -1) {
458 $("p#bitpicker").show();
459 } else {
460 /* mac is always 64 bit, so set it checked */
461 $("p#bitpicker input[value=64]").attr('checked', true);
462 }
463 /* save link name until the bit version is chosen */
464 $("#downloadForRealz").attr('name',$(link).attr('href'));
465 } else {
466 /* if not using bundle, set download button to ignore bitpicker and set url */
467 $("#downloadForRealz").attr('bundle','false');
468 $("#downloadForRealz").attr('href',$(link).attr('href'));
469 /* set picker checked as a fake default */
470 $("p#bitpicker input[value=64]").attr('checked', true);
Scott Maindb3678b2012-10-23 14:13:41 -0700471 $("a#next-link").html("Setting Up an Existing IDE").attr('href',toRoot + 'sdk/installing/index.html');
472 }
Scott Maindb3678b2012-10-23 14:13:41 -0700473
474 $("#tos").fadeIn('fast');
475 $("#landing").fadeOut('fast');
476
477 location.hash = "download";
478 return false;
479 }
480
481
482 function onAgreeChecked() {
Scott Main11ac05b2012-11-15 14:57:44 -0800483 /* verify that the TOS is agreed and a bit version is chosen */
484 if ($("input#agree").is(":checked") && $("#bitpicker input:checked").length) {
485
486 /* if downloading the bundle */
487 if ($("#downloadForRealz").attr('bundle')) {
488 /* construct the name of the link we want based on the bit version */
489 linkId = $("a#downloadForRealz").attr("name") + $("#bitpicker input:checked").val();
490 /* set the real url for download */
491 $("a#downloadForRealz").attr("href", $(linkId).attr("href"));
492 }
493
494 /* reveal the download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700495 $("a#downloadForRealz").removeClass('disabled');
496 } else {
497 $("a#downloadForRealz").addClass('disabled');
498 }
499 }
500
501 function onDownloadForRealz(link) {
Scott Main11ac05b2012-11-15 14:57:44 -0800502 if ($("input#agree").is(':checked') && $("#bitpicker input:checked").length) {
Scott Maindb3678b2012-10-23 14:13:41 -0700503 $("div.sdk-terms").slideUp();
504 $("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow');
505 $("#next-steps").fadeIn('slow');
506 $("h1#tos-header").text('Get Ready to Code!');
Scott Mainc9418f42013-11-20 12:52:22 -0800507 _gaq.push(['_trackEvent', 'SDK', 'ADT and Tools', $("#downloadForRealz").html()]);
Scott Maindb3678b2012-10-23 14:13:41 -0700508 return true;
509 } else {
Scott Main11ac05b2012-11-15 14:57:44 -0800510 $("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,
511 function() {$("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#222"}, 200)}
Scott Maindb3678b2012-10-23 14:13:41 -0700512 );
513 return false;
514 }
515 }
516
517 $(window).hashchange( function(){
Scott Maindb3678b2012-10-23 14:13:41 -0700518 if (location.hash == "") {
519 location.reload();
520 }
521 });
522
Scott Maina1b358a2010-06-24 16:36:54 -0700523</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700524
Scott Maine4d8f1b2012-06-21 18:03:05 -0700525
Scott Maindb3678b2012-10-23 14:13:41 -0700526
527</div><!-- end the wrapper used for relative/absolute positions -->
528<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
529
530
531
532
Scott Main58286dc2011-01-17 18:23:21 -0800533 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700534
Scott Main17e47ad2011-05-27 09:52:19 -0700535 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800536 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
537 Android 3.0 release, to give you a head-start on developing applications for it.
538 </p>
539
540 <p>See the <a
541 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
542 about how to set up the preview SDK and get started.</p>
543 <style type="text/css">
544 .non-preview { display:none; }
545 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700546
547 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700548
549 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
550 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700551 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700552 body .offline { display:block; }
553 body .online { display:none; }
554 </style>
555 <script>
556 $('.reqs').show();
557 </script>
Scott Maincc089092011-01-17 16:44:10 -0800558 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700559
Scott Main58286dc2011-01-17 18:23:21 -0800560 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800561
562<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700563
Scott Maincc089092011-01-17 16:44:10 -0800564<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700565
The Android Open Source Project88b60792009-03-03 19:28:42 -0800566
The Android Open Source Project88b60792009-03-03 19:28:42 -0800567</div><!-- end jd-content -->
568
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700569<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800570<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700571<?cs /if ?>
572
Scott Maincc089092011-01-17 16:44:10 -0800573</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800574
575<?cs include:"trailer.cs" ?>
576
Dirk Dougherty8f6949b2013-12-03 18:49:24 -0800577<!-- Start of Tag -->
578<script type="text/javascript">
579var axel = Math.random() + "";
580var a = axel * 10000000000000;
581document.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>');
582</script>
583<noscript>
584<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>
585</noscript>
586<!-- End of Tag -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800587</body>
588</html>
589
590
591