blob: bbb94c0c2014ffb98f8fefd0396ff5797dfb209e [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 Maine4d8f1b2012-06-21 18:03:05 -0700140<div class="wrap">
141<div class="pax col-13 online" style="display:none">
Scott Maindb3678b2012-10-23 14:13:41 -0700142
143
144
145
146<p class="table-caption"><strong>ADT Bundle</strong></p>
147 <table class="download">
148 <tr>
149 <th>Platform</th>
150 <th>Package</th>
151 <th>Size</th>
152 <th>MD5 Checksum</th>
153 </tr>
154 <tr>
155 <td>Windows</td>
156 <td>
157 <a onClick="return onDownload(this)" id="win-bundle"
158 href="http://dl.google.com/android/sdk/<?cs var:sdk.win_bundle_download ?>"><?cs var:sdk.win_bundle_download ?></a>
159 </td>
160 <td><?cs var:sdk.win_bundle_bytes ?> bytes</td>
161 <td><?cs var:sdk.win_bundle_checksum ?></td>
162 </tr>
163 <tr class="alt-color">
164 <td>Mac OS X (intel)</td>
165 <td>
166 <a onClick="return onDownload(this)" id="mac-bundle"
167 href="http://dl.google.com/android/sdk/<?cs var:ndk.mac_bundle_download ?>"><?cs var:sdk.mac_bundle_download ?></a>
168 </td>
169 <td><?cs var:sdk.mac_bundle_bytes ?> bytes</td>
170 <td><?cs var:sdk.mac_bundle_checksum ?></td>
171 </tr>
172 <tr>
173 <td>Linux 32/64-bit (x86)</td>
174 <td>
175 <a onClick="return onDownload(this)" id="linux-bundle"
176 href="http://dl.google.com/android/sdk/<?cs var:sdk.linux_bundle_download ?>"><?cs var:sdk.linux_bundle_download ?></a>
177 </td>
178 <td><?cs var:sdk.linux_bundle_bytes ?> bytes</td>
179 <td><?cs var:sdk.linux_bundle_checksum ?></td>
180 </tr>
181 </table>
182
183
184<p class="table-caption"><strong>SDK Tools Only</strong></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800185 <table class="download">
186 <tr>
187 <th>Platform</th>
188 <th>Package</th>
189 <th>Size</th>
190 <th>MD5 Checksum</th>
191 </tr>
192 <tr>
Scott Maincc089092011-01-17 16:44:10 -0800193 <td rowspan="2">Windows</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800194 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700195 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700196?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800197 </td>
198 <td><?cs var:sdk.win_bytes ?> bytes</td>
199 <td><?cs var:sdk.win_checksum ?></td>
200 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800201 <tr>
202 <!-- blank TD from Windows rowspan -->
203 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700204 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700205var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800206?>"><?cs var:sdk.win_installer ?></a> (Recommended)
207 </td>
208 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
209 <td><?cs var:sdk.win_installer_checksum ?></td>
210 </tr>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800211 <tr class="alt-color">
212 <td>Mac OS X (intel)</td>
213 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700214 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700215var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700216?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800217 </td>
218 <td><?cs var:sdk.mac_bytes ?> bytes</td>
219 <td><?cs var:sdk.mac_checksum ?></td>
220 </tr>
221 <tr>
222 <td>Linux (i386)</td>
223 <td>
Scott Maindb3678b2012-10-23 14:13:41 -0700224 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700225var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700226?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800227 </td>
228 <td><?cs var:sdk.linux_bytes ?> bytes</td>
229 <td><?cs var:sdk.linux_checksum ?></td>
230 </tr>
231 </table>
Scott Maindb3678b2012-10-23 14:13:41 -0700232
233
234
235
236
Scott Maine4d8f1b2012-06-21 18:03:05 -0700237
238
239<script>
Scott Maindb3678b2012-10-23 14:13:41 -0700240
Scott Maine4d8f1b2012-06-21 18:03:05 -0700241 var os;
Scott Maindb3678b2012-10-23 14:13:41 -0700242 var $bundlelink;
243 var $toolslink;
244
Scott Maine4d8f1b2012-06-21 18:03:05 -0700245 if (navigator.appVersion.indexOf("Win")!=-1) {
246 os = "Windows";
Scott Maindb3678b2012-10-23 14:13:41 -0700247 $bundlelink = $('#win-bundle');
248 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700249 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
250 os = "Mac";
Scott Maindb3678b2012-10-23 14:13:41 -0700251 $bundlelink = $('#mac-bundle');
252 $toolslink = $('#mac-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700253 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
254 os = "Linux";
Scott Maindb3678b2012-10-23 14:13:41 -0700255 $bundlelink = $('#linux-bundle');
256 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700257 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800258
Scott Maine4d8f1b2012-06-21 18:03:05 -0700259 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700260 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700261
262 /* set up primary adt download button */
263 $('#download-bundle-button').show();
264 $('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
265 $('#download-bundle-button').click(function() {return onDownload(this,true);}).attr('href', $bundlelink.attr('href'));
266
267 /* set up sdk tools only button */
268 $('#download-tools-button').show();
269 $('#download-tools-button').append("Download the SDK Tools for " + os);
270 $('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
Scott Maine4d8f1b2012-06-21 18:03:05 -0700271 } else {
272 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700273 }
Scott Maina1b358a2010-06-24 16:36:54 -0700274
Scott Maindb3678b2012-10-23 14:13:41 -0700275 function onDownload(link, button) {
276
277 if (button) {
278 $("#downloadForRealz").html($(link).text());
279 } else {
280 $("#downloadForRealz").html("Download " + $(link).text());
281 $("a#next-link").html("Setting Up an Existing IDE").attr('href',toRoot + 'sdk/installing/index.html');
282 }
283 $("#downloadForRealz").attr('href',$(link).attr('href'));
284
285 $("#tos").fadeIn('fast');
286 $("#landing").fadeOut('fast');
287
288 location.hash = "download";
289 return false;
290 }
291
292
293 function onAgreeChecked() {
294 if ($("input#agree").is(":checked")) {
295 $("a#downloadForRealz").removeClass('disabled');
296 } else {
297 $("a#downloadForRealz").addClass('disabled');
298 }
299 }
300
301 function onDownloadForRealz(link) {
302 if ($("input#agree").is(':checked')) {
303 $("div.sdk-terms").slideUp();
304 $("#sdk-terms-form,.sdk-terms-intro").fadeOut('slow');
305 $("#next-steps").fadeIn('slow');
306 $("h1#tos-header").text('Get Ready to Code!');
307 return true;
308 } else {
309 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
310 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
311 );
312 return false;
313 }
314 }
315
316 $(window).hashchange( function(){
317 console.log('hash: '+location.hash);
318 if (location.hash == "") {
319 location.reload();
320 }
321 });
322
Scott Maina1b358a2010-06-24 16:36:54 -0700323</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700324
325</div><!-- end pax -->
326</div><!-- end wrap -->
327
Scott Maindb3678b2012-10-23 14:13:41 -0700328
329</div><!-- end the wrapper used for relative/absolute positions -->
330<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
331
332
333
334
Scott Main58286dc2011-01-17 18:23:21 -0800335 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700336
Scott Main17e47ad2011-05-27 09:52:19 -0700337 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800338 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
339 Android 3.0 release, to give you a head-start on developing applications for it.
340 </p>
341
342 <p>See the <a
343 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
344 about how to set up the preview SDK and get started.</p>
345 <style type="text/css">
346 .non-preview { display:none; }
347 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700348
349 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700350
351 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
352 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700353 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700354 body .offline { display:block; }
355 body .online { display:none; }
356 </style>
357 <script>
358 $('.reqs').show();
359 </script>
Scott Maincc089092011-01-17 16:44:10 -0800360 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700361
Scott Main58286dc2011-01-17 18:23:21 -0800362 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800363
364<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700365
Scott Maincc089092011-01-17 16:44:10 -0800366<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700367
The Android Open Source Project88b60792009-03-03 19:28:42 -0800368
The Android Open Source Project88b60792009-03-03 19:28:42 -0800369</div><!-- end jd-content -->
370
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700371<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800372<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700373<?cs /if ?>
374
Scott Maincc089092011-01-17 16:44:10 -0800375</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800376
377<?cs include:"trailer.cs" ?>
378
379</body>
380</html>
381
382
383