blob: c6679a677d95a89cecd3716b749275d0f1d56f42 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
Trevor Johns4ff88912016-04-19 01:15:39 -07003<?cs include:"../../../../frameworks/base/docs/html/sdk/sdk_vars.cs" ?>
Scott Maine05e6f92013-01-29 13:34:17 -08004<html<?cs if:devsite ?> devsite<?cs /if ?>>
The Android Open Source Project88b60792009-03-03 19:28:42 -08005<?cs if:sdk.redirect ?>
6 <head>
7 <title>Redirecting...</title>
Scott Maincc089092011-01-17 16:44:10 -08008 <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs
9 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
Dirk Doughertye1233852010-03-03 14:34:51 -080010 else ?>index.html<?cs /if ?>">
The Android Open Source Project88b60792009-03-03 19:28:42 -080011 </head>
12<?cs else ?>
13 <?cs include:"head_tag.cs" ?>
14<?cs /if ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -070015<body class="gc-documentation
Scott Maine4d8f1b2012-06-21 18:03:05 -070016 <?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>
David Friedmane0471a82014-10-15 02:21:19 -070081 <th>Platform</th>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070082 <th>Package</th>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070083 <th style="white-space:nowrap">Size (Bytes)</th>
Trevor Johns4ff88912016-04-19 01:15:39 -070084 <th>SHA1 Checksum</th>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070085 </tr>
86 <tr>
David Friedman612a88b2013-12-06 02:23:14 -080087 <td>Windows 32-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070088 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -070089 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
90 href="//dl.google.com/android/repository/<?cs var:ndk.win32_download ?>"><?cs var:ndk.win32_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070091 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -070092 <td><?cs var:ndk.win32_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -070093 <td><?cs var:ndk.win32_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070094 </tr>
David Friedman612a88b2013-12-06 02:23:14 -080095 <!-- <tr>
96 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -070097 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
Chris Palmer04681502015-09-09 11:31:54 -070098 href="//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 -070099 </td>
100 <td><?cs var:ndk.win32.legacy_bytes ?></td>
101 <td><?cs var:ndk.win32.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800102 </tr> -->
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700103 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800104 <td>Windows 64-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700105 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700106 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
107 href="//dl.google.com/android/repository/<?cs var:ndk.win64_download ?>"><?cs var:ndk.win64_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700108 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700109 <td><?cs var:ndk.win64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700110 <td><?cs var:ndk.win64_checksum ?></td>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700111 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800112 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700113 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700114 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
115 href="//dl.google.com/android/repository/<?cs var:ndk.win64.legacy_download ?>"><?cs var:ndk.win64.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700116 </td>
117 <td><?cs var:ndk.win64.legacy_bytes ?></td>
118 <td><?cs var:ndk.win64.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800119 </tr> -->
David Friedman302e2f92015-05-13 07:10:22 -0700120<!-- (this item is deprecated)
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700121 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800122 <td>Mac OS X 32-bit</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700123 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700124 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
125 href="//dl.google.com/android/repository/<?cs var:ndk.mac32_download ?>"><?cs var:ndk.mac32_download ?></a>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700126 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700127 <td><?cs var:ndk.mac32_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700128 <td><?cs var:ndk.mac32_checksum ?></td>
David Friedman302e2f92015-05-13 07:10:22 -0700129 </tr> -->
130 <!-- (this item is deprecated)
131 <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700132 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700133 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
134 href="//dl.google.com/android/repository/<?cs var:ndk.mac32.legacy_download ?>"><?cs var:ndk.mac32.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700135 </td>
136 <td><?cs var:ndk.mac32.legacy_bytes ?></td>
137 <td><?cs var:ndk.mac32.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800138 </tr> -->
139 <td>Mac OS X 64-bit</td>
Scott Maina2303452013-03-18 11:31:15 -0700140 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700141 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
142 href="//dl.google.com/android/repository/<?cs var:ndk.mac64_download ?>"><?cs var:ndk.mac64_download ?></a>
Scott Maina2303452013-03-18 11:31:15 -0700143 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700144 <td><?cs var:ndk.mac64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700145 <td><?cs var:ndk.mac64_checksum ?></td>
146 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800147 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700148 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700149 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
150 href="//dl.google.com/android/repository/<?cs var:ndk.mac64.legacy_download ?>"><?cs var:ndk.mac64.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700151 </td>
152 <td><?cs var:ndk.mac64.legacy_bytes ?></td>
153 <td><?cs var:ndk.mac64.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800154 </tr> -->
David Friedman612a88b2013-12-06 02:23:14 -0800155 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700156 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700157 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
158 href="//dl.google.com/android/repository/<?cs var:ndk.linux32.legacy_download ?>"><?cs var:ndk.linux32.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700159 </td>
160 <td><?cs var:ndk.linux32.legacy_bytes ?></td>
161 <td><?cs var:ndk.linux32.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800162 </tr> -->
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700163 <tr>
David Friedman612a88b2013-12-06 02:23:14 -0800164 <td>Linux 64-bit (x86)</td>
Scott Maina2303452013-03-18 11:31:15 -0700165 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700166 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
167 href="//dl.google.com/android/repository/<?cs var:ndk.linux64_download ?>"><?cs var:ndk.linux64_download ?></a>
Scott Maina2303452013-03-18 11:31:15 -0700168 </td>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700169 <td><?cs var:ndk.linux64_bytes ?></td>
Scott Maina2303452013-03-18 11:31:15 -0700170 <td><?cs var:ndk.linux64_checksum ?></td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700171 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800172 <!-- <tr>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700173 <td>
Trevor Johns4ff88912016-04-19 01:15:39 -0700174 <a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
175 href="//dl.google.com/android/repository/<?cs var:ndk.linux64.legacy_download ?>"><?cs var:ndk.linux64.legacy_download ?></a>
Dirk Dougherty48e3f1d2013-07-25 15:26:07 -0700176 </td>
177 <td><?cs var:ndk.linux64.legacy_bytes ?></td>
178 <td><?cs var:ndk.linux64.legacy_checksum ?></td>
David Friedman612a88b2013-12-06 02:23:14 -0800179 </tr> -->
David Friedman81415ad2014-07-15 11:38:40 -0700180
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700181 </table>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700182
Scott Maine4d8f1b2012-06-21 18:03:05 -0700183 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
184 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700185
Scott Main098d8de2012-11-13 11:25:06 -0800186
Trevor Johns4ff88912016-04-19 01:15:39 -0700187<?cs ######## The NDK version of the download script ######### ?>
Scott Main098d8de2012-11-13 11:25:06 -0800188<script>
189 function onDownload(link) {
190
191 $("#downloadForRealz").html("Download " + $(link).text());
192 $("#downloadForRealz").attr('href',$(link).attr('href'));
193
Scott Main098d8de2012-11-13 11:25:06 -0800194 return false;
195 }
196
197
198 function onAgreeChecked() {
199 if ($("input#agree").is(":checked")) {
200 $("a#downloadForRealz").removeClass('disabled');
201 } else {
202 $("a#downloadForRealz").addClass('disabled');
203 }
204 }
205
Trevor Johns4ff88912016-04-19 01:15:39 -0700206
207 function onDownloadForRealz(link) {
Scott Main098d8de2012-11-13 11:25:06 -0800208 if ($("input#agree").is(':checked')) {
Trevor Johns4ff88912016-04-19 01:15:39 -0700209 $("div.sdk-terms").slideUp();
210 $("h2#tos-header").text('Now downloading...');
211 $(".sdk-terms-intro").text('Your download is in progress.');
212 $("#sdk-terms-form").fadeOut('slow', function() {
213 setTimeout(function() {
214 // close the dialog
215 $('#ndk_tos').trigger('modal-close');
216 // reload to refresh the tos or optionally forward the user
217 location.reload();
218 }, 3000);
Scott Main098d8de2012-11-13 11:25:06 -0800219 });
Trevor Johns4ff88912016-04-19 01:15:39 -0700220 ga('send', 'event', 'SDK', 'NDK tools', $("#downloadForRealz").html());
Scott Main098d8de2012-11-13 11:25:06 -0800221 return true;
222 } else {
Scott Main098d8de2012-11-13 11:25:06 -0800223 return false;
224 }
225 }
226
Trevor Johns4ff88912016-04-19 01:15:39 -0700227
Scott Main098d8de2012-11-13 11:25:06 -0800228 $(window).hashchange( function(){
229 if (location.hash == "") {
230 location.reload();
231 }
232 });
233
234</script>
235
Scott Maincc089092011-01-17 16:44:10 -0800236 <?cs else ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700237<?cs # end if NDK ...
Scott Maincc089092011-01-17 16:44:10 -0800238#
239#
240#
241#
242#
243#
244# the following is for the SDK
245#
246# (nested in if/else redirect and if/else NDK)
247#
248#
249#
250#
251?>
Scott Mainb73777e2010-11-22 15:02:01 -0800252 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700253
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800254
Scott Maine4d8f1b2012-06-21 18:03:05 -0700255<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
256<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800257
Scott Maindb3678b2012-10-23 14:13:41 -0700258
smain@google.com6f0ed9b2016-05-02 14:18:31 -0700259<?cs ####### TODO: Remove this whole file from processing. ######## ?>
Scott Maindb3678b2012-10-23 14:13:41 -0700260
261
Trevor Johns4ff88912016-04-19 01:15:39 -0700262<?cs ######## The Android Studio version of the download script ######### ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700263<script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700264 var os;
Scott Main11ac05b2012-11-15 14:57:44 -0800265 var bundlename;
Scott Maindb3678b2012-10-23 14:13:41 -0700266 var $toolslink;
267
smain@google.comd53f0662014-12-03 19:34:55 -0800268 if (navigator.appVersion.indexOf("Mobile")!=-1) {
269 // Do nothing for any "mobile" user agent
270 } else if (navigator.appVersion.indexOf("Win")!=-1) {
Scott Maine4d8f1b2012-06-21 18:03:05 -0700271 os = "Windows";
Scott Main11ac05b2012-11-15 14:57:44 -0800272 bundlename = '#win-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700273 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700274 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
275 os = "Mac";
Scott Main11ac05b2012-11-15 14:57:44 -0800276 bundlename = '#mac-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700277 $toolslink = $('#mac-tools');
smain@google.comd53f0662014-12-03 19:34:55 -0800278 } else if (navigator.appVersion.indexOf("Linux")!=-1 && navigator.appVersion.indexOf("Android")==-1) {
Scott Maine4d8f1b2012-06-21 18:03:05 -0700279 os = "Linux";
Scott Main11ac05b2012-11-15 14:57:44 -0800280 bundlename = '#linux-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700281 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700282 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800283
smain@google.comd53f0662014-12-03 19:34:55 -0800284 if (os != undefined) {
Scott Mainf973ced2012-06-28 11:56:01 -0700285 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700286
Rich Slogarfe4dd522014-11-03 15:16:34 -0800287 /* set up primary Android Studio download button */
Trevor Johns4ff88912016-04-19 01:15:39 -0700288 idname = bundlename + "-size";
289 sizeMB = $(idname).text().split(' MB')[0];
290 $('.download-bundle-button > .small').html(" for " + os + " <em>(" + sizeMB + " MB)</em>");
smain@google.comd53f0662014-12-03 19:34:55 -0800291 $('.download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
Scott Maine4d8f1b2012-06-21 18:03:05 -0700292 }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700293
294
Scott Main11ac05b2012-11-15 14:57:44 -0800295 function onDownload(link, button, bundle) {
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700296
Scott Main11ac05b2012-11-15 14:57:44 -0800297 /* set text for download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700298 if (button) {
299 $("#downloadForRealz").html($(link).text());
300 } else {
301 $("#downloadForRealz").html("Download " + $(link).text());
Scott Main11ac05b2012-11-15 14:57:44 -0800302 }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700303
smain@google.comd53f0662014-12-03 19:34:55 -0800304 $("#downloadForRealz").attr('bundle', bundle);
smain@google.com4ffdc8f2015-08-28 16:51:12 -0700305 if (bundle && !button) {
306 $("a#downloadForRealz").attr("name", "#" + $(link).attr('id'));
307 } else {
Trevor Johns4ff88912016-04-19 01:15:39 -0700308 $("h2#tos-header").text('Download the Android SDK Tools');
smain@google.com4ffdc8f2015-08-28 16:51:12 -0700309 $("a#downloadForRealz").attr("name", $(link).attr('href'));
310 }
Scott Maindb3678b2012-10-23 14:13:41 -0700311
Scott Maindb3678b2012-10-23 14:13:41 -0700312 return false;
313 }
314
315
316 function onAgreeChecked() {
smain@google.comd53f0662014-12-03 19:34:55 -0800317 /* verify that the TOS is agreed */
318 if ($("input#agree").is(":checked")) {
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700319
Scott Main11ac05b2012-11-15 14:57:44 -0800320 /* if downloading the bundle */
321 if ($("#downloadForRealz").attr('bundle')) {
smain@google.comd53f0662014-12-03 19:34:55 -0800322 /* construct the name of the link we want */
323 linkId = $("a#downloadForRealz").attr("name");
Scott Main11ac05b2012-11-15 14:57:44 -0800324 /* set the real url for download */
325 $("a#downloadForRealz").attr("href", $(linkId).attr("href"));
smain@google.comd53f0662014-12-03 19:34:55 -0800326 } else {
327 $("a#downloadForRealz").attr("href", $("a#downloadForRealz").attr("name"));
Scott Main11ac05b2012-11-15 14:57:44 -0800328 }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700329
Scott Main11ac05b2012-11-15 14:57:44 -0800330 /* reveal the download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700331 $("a#downloadForRealz").removeClass('disabled');
332 } else {
333 $("a#downloadForRealz").addClass('disabled');
334 }
335 }
336
337 function onDownloadForRealz(link) {
smain@google.comd53f0662014-12-03 19:34:55 -0800338 if ($("input#agree").is(':checked')) {
Scott Maindb3678b2012-10-23 14:13:41 -0700339 $("div.sdk-terms").slideUp();
Trevor Johns4ff88912016-04-19 01:15:39 -0700340 if ($("#downloadForRealz").attr('bundle') == 'true') {
341 $("h2#tos-header").text('Now downloading Android Studio!');
342 $(".sdk-terms-intro").text('Redirecting to the install instructions...');
343 $("#sdk-terms-form").slideUp(function() {
344 setTimeout(function() {
345 window.location = "/sdk/installing/index.html";
346 }, 2000);
347 });
348 } else {
349 $("h2#tos-header").text('Now downloading the Android SDK Tools!');
350 $(".sdk-terms-intro").html("<p>Because you've chosen to download " +
351 "only the Android SDK tools (and not Android Studio), there are no " +
352 "setup procedures to follow.</p><p>For information about how to " +
353 "keep your SDK tools up to date, refer to the " +
354 "<a href='/tools/help/sdk-manager.html'>SDK Manager</a> guide.</p>");
355 $("#sdk-terms-form").slideUp();
356 }
smain@google.com633f3222014-10-03 15:49:45 -0700357 ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
Scott Maindb3678b2012-10-23 14:13:41 -0700358 return true;
359 } else {
Scott Maindb3678b2012-10-23 14:13:41 -0700360 return false;
361 }
362 }
363
364 $(window).hashchange( function(){
Scott Maindb3678b2012-10-23 14:13:41 -0700365 if (location.hash == "") {
366 location.reload();
367 }
368 });
369
Scott Maina1b358a2010-06-24 16:36:54 -0700370</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700371
Scott Maine4d8f1b2012-06-21 18:03:05 -0700372
Scott Maindb3678b2012-10-23 14:13:41 -0700373
Trevor Johns4ff88912016-04-19 01:15:39 -0700374
Scott Maindb3678b2012-10-23 14:13:41 -0700375<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
376
377
378
379
Scott Main58286dc2011-01-17 18:23:21 -0800380 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700381
Scott Main17e47ad2011-05-27 09:52:19 -0700382 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800383 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
384 Android 3.0 release, to give you a head-start on developing applications for it.
385 </p>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700386
Scott Maincc089092011-01-17 16:44:10 -0800387 <p>See the <a
388 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
389 about how to set up the preview SDK and get started.</p>
390 <style type="text/css">
391 .non-preview { display:none; }
392 </style>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700393
Scott Main17e47ad2011-05-27 09:52:19 -0700394 <?cs else ?><?cs # it's normal offline docs ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700395
Scott Maine4d8f1b2012-06-21 18:03:05 -0700396 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
397 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700398 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700399 body .offline { display:block; }
400 body .online { display:none; }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700401 </style>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700402 <script>
403 $('.reqs').show();
404 </script>
Scott Maincc089092011-01-17 16:44:10 -0800405 <?cs /if ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700406
Scott Main58286dc2011-01-17 18:23:21 -0800407 <?cs /if ?> <?cs # end if/else online ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700408
Scott Maincc089092011-01-17 16:44:10 -0800409<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700410
Scott Maincc089092011-01-17 16:44:10 -0800411<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700412
The Android Open Source Project88b60792009-03-03 19:28:42 -0800413
The Android Open Source Project88b60792009-03-03 19:28:42 -0800414</div><!-- end jd-content -->
415
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700416<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800417<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700418<?cs /if ?>
419
Scott Maincc089092011-01-17 16:44:10 -0800420</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800421
422<?cs include:"trailer.cs" ?>
Trevor Johns4ff88912016-04-19 01:15:39 -0700423<script src="https://developer.android.com/ytblogger_lists_unified.js?v=17" type="text/javascript"></script>
424<script src="/jd_lists_unified.js?v=17" type="text/javascript"></script>
425<script src="/jd_extras.js?v=17" type="text/javascript"></script>
426<script src="/jd_collections.js?v=17" type="text/javascript"></script>
427<script src="/jd_tag_helpers.js?v=17" type="text/javascript"></script>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800428
Dirk Dougherty8f6949b2013-12-03 18:49:24 -0800429<!-- Start of Tag -->
430<script type="text/javascript">
431var axel = Math.random() + "";
432var a = axel * 10000000000000;
433document.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>');
434</script>
435<noscript>
436<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>
437</noscript>
438<!-- End of Tag -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800439</body>
440</html>
441
442
443