blob: 7a021937ea1c480fb3a259c9b8d4d0692cef2d80 [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 ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -070014<body class="gc-documentation
Scott Maine4d8f1b2012-06-21 18:03:05 -070015 <?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>
David Friedmane0471a82014-10-15 02:21:19 -070080 <th>Platform</th>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070081 <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>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700110 </tr>
David Friedman612a88b2013-12-06 02:23:14 -0800111 <!-- <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> -->
David Friedman81415ad2014-07-15 11:38:40 -0700186
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700187 </table>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700188
Scott Maine4d8f1b2012-06-21 18:03:05 -0700189 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
190 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700191
Scott Main098d8de2012-11-13 11:25:06 -0800192
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700193
Scott Main098d8de2012-11-13 11:25:06 -0800194<script>
195 function onDownload(link) {
196
197 $("#downloadForRealz").html("Download " + $(link).text());
198 $("#downloadForRealz").attr('href',$(link).attr('href'));
199
200 $("#tos").fadeIn('slow');
201
202 location.hash = "download";
203 return false;
204 }
205
206
207 function onAgreeChecked() {
208 if ($("input#agree").is(":checked")) {
209 $("a#downloadForRealz").removeClass('disabled');
210 } else {
211 $("a#downloadForRealz").addClass('disabled');
212 }
213 }
214
215 function onDownloadNdkForRealz(link) {
216 if ($("input#agree").is(':checked')) {
217 $("#tos").fadeOut('slow');
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700218
Scott Main098d8de2012-11-13 11:25:06 -0800219 $('html, body').animate({
220 scrollTop: $("#Installing").offset().top
221 }, 800, function() {
222 $("#Installing").click();
223 });
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700224
Scott Main098d8de2012-11-13 11:25:06 -0800225 return true;
226 } else {
227 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
228 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
229 );
230 return false;
231 }
232 }
233
234 $(window).hashchange( function(){
235 if (location.hash == "") {
236 location.reload();
237 }
238 });
239
240</script>
241
Scott Maincc089092011-01-17 16:44:10 -0800242 <?cs else ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700243<?cs # end if NDK ...
Scott Maincc089092011-01-17 16:44:10 -0800244#
245#
246#
247#
248#
249#
250# the following is for the SDK
251#
252# (nested in if/else redirect and if/else NDK)
253#
254#
255#
256#
257?>
Scott Mainb73777e2010-11-22 15:02:01 -0800258 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700259
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800260
Scott Maine4d8f1b2012-06-21 18:03:05 -0700261<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
262<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800263
Scott Maindb3678b2012-10-23 14:13:41 -0700264
265
266
smain@google.comd53f0662014-12-03 19:34:55 -0800267<div class="pax col-13 online" style="margin:0;">
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700268
269
smain@google.comd53f0662014-12-03 19:34:55 -0800270<h3>SDK Tools Only</h3>
Scott Maindb3678b2012-10-23 14:13:41 -0700271
smain@google.comd53f0662014-12-03 19:34:55 -0800272<p>If you prefer to use a different IDE or run the tools from the
273command line or with build scripts, you can instead download the stand-alone Android SDK Tools.
274These packages provide the basic SDK tools for app development, without an IDE.
275</p>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700276
Rich Slogarfe4dd522014-11-03 15:16:34 -0800277 <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>
smain@google.comd53f0662014-12-03 19:34:55 -0800285 <td rowspan="2">Windows</td>
Rich Slogarfe4dd522014-11-03 15:16:34 -0800286 <td>
Rich Slogarfe4dd522014-11-03 15:16:34 -0800287 <a onclick="return onDownload(this)" id="win-tools" href="http://dl.google.com/android/<?cs
288var:sdk.win_installer
289?>"><?cs var:sdk.win_installer ?></a> (Recommended)
290 </td>
291 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
292 <td><?cs var:sdk.win_installer_checksum ?></td>
293 </tr>
294 <tr>
smain@google.com102db8b2014-12-07 22:39:24 -0800295 <!-- blank TD from Windows rowspan -->
296 <td>
297 <a onclick="return onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
298?>"><?cs var:sdk.win_download ?></a>
299 </td>
300 <td><?cs var:sdk.win_bytes ?> bytes</td>
301 <td><?cs var:sdk.win_checksum ?></td>
302 </tr>
303 <tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800304 <td><nobr>Mac OS X</nobr></td>
Rich Slogarfe4dd522014-11-03 15:16:34 -0800305 <td>
306 <a onclick="return onDownload(this)" id="mac-tools" href="http://dl.google.com/android/<?cs
307var:sdk.mac_download
308?>"><?cs var:sdk.mac_download ?></a>
309 </td>
310 <td><?cs var:sdk.mac_bytes ?> bytes</td>
311 <td><?cs var:sdk.mac_checksum ?></td>
312 </tr>
313 <tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800314 <td>Linux</td>
Rich Slogarfe4dd522014-11-03 15:16:34 -0800315 <td>
316 <a onclick="return onDownload(this)" id="linux-tools" href="http://dl.google.com/android/<?cs
317var:sdk.linux_download
318?>"><?cs var:sdk.linux_download ?></a>
319 </td>
320 <td><?cs var:sdk.linux_bytes ?> bytes</td>
321 <td><?cs var:sdk.linux_checksum ?></td>
322 </tr>
323 </table>
324
325
smain@google.comd53f0662014-12-03 19:34:55 -0800326
327<h3>All Android Studio Packages</h3>
328
329<p>Select a specific Android Studio package for your platform.</p>
330
Scott Maindb3678b2012-10-23 14:13:41 -0700331 <table class="download">
332 <tr>
333 <th>Platform</th>
334 <th>Package</th>
335 <th>Size</th>
smain@google.comd53f0662014-12-03 19:34:55 -0800336 <th>SHA Sum</th>
Scott Maindb3678b2012-10-23 14:13:41 -0700337 </tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800338
Scott Maindb3678b2012-10-23 14:13:41 -0700339 <tr>
smain@google.com102db8b2014-12-07 22:39:24 -0800340 <td rowspan="3">Windows</td>
Scott Maindb3678b2012-10-23 14:13:41 -0700341 <td>
smain@google.comd53f0662014-12-03 19:34:55 -0800342 <a onclick="return onDownload(this)" id="win-bundle"
smain@google.com102db8b2014-12-07 22:39:24 -0800343 href="https://dl.google.com/dl/android/studio/install/<?cs var:studio.version ?>/<?cs var:studio.win_bundle_exe_download ?>"
344 ><?cs var:studio.win_bundle_exe_download ?></a><br>(Recommended)
345 </td>
346 <td><?cs var:studio.win_bundle_exe_bytes ?> bytes</td>
347 <td><?cs var:studio.win_bundle_exe_checksum ?></td>
348 </tr>
349
350 <tr>
351 <!-- blank TD from Windows rowspan -->
352 <td>
353 <a onclick="return onDownload(this)"
354 href="https://dl.google.com/dl/android/studio/install/<?cs var:studio.version ?>/<?cs var:studio.win_notools_exe_download ?>"
355 ><?cs var:studio.win_notools_exe_download ?></a><br>(No SDK tools included)
356 </td>
357 <td><?cs var:studio.win_notools_exe_bytes ?> bytes</td>
358 <td><?cs var:studio.win_notools_exe_checksum ?></td>
359 </tr>
360
361 <tr>
362 <!-- blank TD from Windows rowspan -->
363 <td>
364 <a onclick="return onDownload(this)"
smain@google.comd53f0662014-12-03 19:34:55 -0800365 href="https://dl.google.com/dl/android/studio/ide-zips/<?cs var:studio.version ?>/<?cs var:studio.win_bundle_download ?>"
366 ><?cs var:studio.win_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700367 </td>
smain@google.comd53f0662014-12-03 19:34:55 -0800368 <td><?cs var:studio.win_bundle_bytes ?> bytes</td>
369 <td><?cs var:studio.win_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700370 </tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800371
Scott Maindb3678b2012-10-23 14:13:41 -0700372 <tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800373 <td><nobr>Mac OS X</nobr></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700374 <td>
smain@google.comd53f0662014-12-03 19:34:55 -0800375 <a onclick="return onDownload(this)" id="mac-bundle"
smain@google.com102db8b2014-12-07 22:39:24 -0800376 href="https://dl.google.com/dl/android/studio/install/<?cs var:studio.version ?>/<?cs var:studio.mac_bundle_download ?>"
smain@google.comd53f0662014-12-03 19:34:55 -0800377 ><?cs var:studio.mac_bundle_download ?></a>
Scott Maindb3678b2012-10-23 14:13:41 -0700378 </td>
smain@google.comd53f0662014-12-03 19:34:55 -0800379 <td><?cs var:studio.mac_bundle_bytes ?> bytes</td>
380 <td><?cs var:studio.mac_bundle_checksum ?></td>
Scott Main11ac05b2012-11-15 14:57:44 -0800381 </tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800382
Scott Main11ac05b2012-11-15 14:57:44 -0800383 <tr>
smain@google.comd53f0662014-12-03 19:34:55 -0800384 <td>Linux</td>
Scott Main11ac05b2012-11-15 14:57:44 -0800385 <td>
smain@google.comd53f0662014-12-03 19:34:55 -0800386 <a onclick="return onDownload(this)" id="linux-bundle"
387 href="https://dl.google.com/dl/android/studio/ide-zips/<?cs var:studio.version ?>/<?cs var:studio.linux_bundle_download ?>"
388 ><?cs var:studio.linux_bundle_download ?></a>
Scott Main11ac05b2012-11-15 14:57:44 -0800389 </td>
smain@google.comd53f0662014-12-03 19:34:55 -0800390 <td><?cs var:studio.linux_bundle_bytes ?> bytes</td>
391 <td><?cs var:studio.linux_bundle_checksum ?></td>
Scott Maindb3678b2012-10-23 14:13:41 -0700392 </tr>
393 </table>
394
395
Rich Slogarfe4dd522014-11-03 15:16:34 -0800396
Scott Main55d99832012-11-12 23:03:59 -0800397</div><!-- end pax -->
Scott Maindb3678b2012-10-23 14:13:41 -0700398
399
Scott Main55d99832012-11-12 23:03:59 -0800400
401</div><!-- end col-13 for lower-half content -->
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700402
403
404
405
Scott Maine4d8f1b2012-06-21 18:03:05 -0700406<script>
Scott Main55d99832012-11-12 23:03:59 -0800407 if (location.hash == "#Requirements") {
408 $('.reqs').show();
409 } else if (location.hash == "#ExistingIDE") {
410 $('.ide').show();
411 }
Scott Maindb3678b2012-10-23 14:13:41 -0700412
Scott Maine4d8f1b2012-06-21 18:03:05 -0700413 var os;
Scott Main11ac05b2012-11-15 14:57:44 -0800414 var bundlename;
Scott Maindb3678b2012-10-23 14:13:41 -0700415 var $toolslink;
416
smain@google.comd53f0662014-12-03 19:34:55 -0800417 if (navigator.appVersion.indexOf("Mobile")!=-1) {
418 // Do nothing for any "mobile" user agent
419 } else if (navigator.appVersion.indexOf("Win")!=-1) {
Scott Maine4d8f1b2012-06-21 18:03:05 -0700420 os = "Windows";
Scott Main11ac05b2012-11-15 14:57:44 -0800421 bundlename = '#win-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700422 $toolslink = $('#win-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700423 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
424 os = "Mac";
Scott Main11ac05b2012-11-15 14:57:44 -0800425 bundlename = '#mac-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700426 $toolslink = $('#mac-tools');
smain@google.comd53f0662014-12-03 19:34:55 -0800427 } else if (navigator.appVersion.indexOf("Linux")!=-1 && navigator.appVersion.indexOf("Android")==-1) {
Scott Maine4d8f1b2012-06-21 18:03:05 -0700428 os = "Linux";
Scott Main11ac05b2012-11-15 14:57:44 -0800429 bundlename = '#linux-bundle';
Scott Maindb3678b2012-10-23 14:13:41 -0700430 $toolslink = $('#linux-tools');
Scott Maine4d8f1b2012-06-21 18:03:05 -0700431 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800432
smain@google.comd53f0662014-12-03 19:34:55 -0800433 if (os != undefined) {
Scott Mainf973ced2012-06-28 11:56:01 -0700434 $('#not-supported').hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700435
Rich Slogarfe4dd522014-11-03 15:16:34 -0800436 /* set up primary Android Studio download button */
smain@google.comd53f0662014-12-03 19:34:55 -0800437 $('.download-bundle-button').append(" <br/><span class='small'>for " + os + "</span>");
438 $('.download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
Scott Maine4d8f1b2012-06-21 18:03:05 -0700439 }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700440
441
Scott Main11ac05b2012-11-15 14:57:44 -0800442 function onDownload(link, button, bundle) {
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700443
Scott Main11ac05b2012-11-15 14:57:44 -0800444 /* set text for download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700445 if (button) {
446 $("#downloadForRealz").html($(link).text());
447 } else {
448 $("#downloadForRealz").html("Download " + $(link).text());
Scott Main11ac05b2012-11-15 14:57:44 -0800449 }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700450
smain@google.comd53f0662014-12-03 19:34:55 -0800451 $("#downloadForRealz").attr('bundle', bundle);
452 $("a#downloadForRealz").attr("name", $(link).attr('href'));
Scott Maindb3678b2012-10-23 14:13:41 -0700453
smain@google.comd53f0662014-12-03 19:34:55 -0800454 $("#tos").show();
455 $("#landing").hide();
Scott Maindb3678b2012-10-23 14:13:41 -0700456
smain@google.comd53f0662014-12-03 19:34:55 -0800457 location.hash = "top";
Scott Maindb3678b2012-10-23 14:13:41 -0700458 return false;
459 }
460
461
462 function onAgreeChecked() {
smain@google.comd53f0662014-12-03 19:34:55 -0800463 /* verify that the TOS is agreed */
464 if ($("input#agree").is(":checked")) {
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700465
Scott Main11ac05b2012-11-15 14:57:44 -0800466 /* if downloading the bundle */
467 if ($("#downloadForRealz").attr('bundle')) {
smain@google.comd53f0662014-12-03 19:34:55 -0800468 /* construct the name of the link we want */
469 linkId = $("a#downloadForRealz").attr("name");
Scott Main11ac05b2012-11-15 14:57:44 -0800470 /* set the real url for download */
471 $("a#downloadForRealz").attr("href", $(linkId).attr("href"));
smain@google.comd53f0662014-12-03 19:34:55 -0800472 } else {
473 $("a#downloadForRealz").attr("href", $("a#downloadForRealz").attr("name"));
Scott Main11ac05b2012-11-15 14:57:44 -0800474 }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700475
Scott Main11ac05b2012-11-15 14:57:44 -0800476 /* reveal the download button */
Scott Maindb3678b2012-10-23 14:13:41 -0700477 $("a#downloadForRealz").removeClass('disabled');
478 } else {
479 $("a#downloadForRealz").addClass('disabled');
480 }
481 }
482
483 function onDownloadForRealz(link) {
smain@google.comd53f0662014-12-03 19:34:55 -0800484 if ($("input#agree").is(':checked')) {
485 location.hash = "";
486 location.hash = "top";
Scott Maindb3678b2012-10-23 14:13:41 -0700487 $("div.sdk-terms").slideUp();
smain@google.comd53f0662014-12-03 19:34:55 -0800488 $("h1#tos-header").text('Now downloading...');
489 $(".sdk-terms-intro").text('You\'ll be redirected to the install instructions in a moment.');
490 $("#sdk-terms-form").fadeOut('slow', function() {
Scott Mainc29b3f52014-05-30 21:18:30 -0700491 setTimeout(function() {
492 if ($("#downloadForRealz").attr('bundle') == 'true') {
smain@google.comd53f0662014-12-03 19:34:55 -0800493 // User downloaded the studio Bundle
494 window.location = "/sdk/installing/index.html?pkg=studio";
Scott Mainc29b3f52014-05-30 21:18:30 -0700495 } else {
496 // User downloaded the SDK Tools
497 window.location = "/sdk/installing/index.html?pkg=tools";
498 }
smain@google.comd53f0662014-12-03 19:34:55 -0800499 }, 3000);
Scott Mainc29b3f52014-05-30 21:18:30 -0700500 });
smain@google.com633f3222014-10-03 15:49:45 -0700501 ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
Scott Maindb3678b2012-10-23 14:13:41 -0700502 return true;
503 } else {
smain@google.comd53f0662014-12-03 19:34:55 -0800504 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
505 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
Scott Maindb3678b2012-10-23 14:13:41 -0700506 );
507 return false;
508 }
509 }
510
511 $(window).hashchange( function(){
Scott Maindb3678b2012-10-23 14:13:41 -0700512 if (location.hash == "") {
513 location.reload();
514 }
515 });
516
Scott Maina1b358a2010-06-24 16:36:54 -0700517</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700518
Scott Maine4d8f1b2012-06-21 18:03:05 -0700519
Scott Maindb3678b2012-10-23 14:13:41 -0700520
521</div><!-- end the wrapper used for relative/absolute positions -->
522<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
523
524
525
526
Scott Main58286dc2011-01-17 18:23:21 -0800527 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700528
Scott Main17e47ad2011-05-27 09:52:19 -0700529 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800530 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
531 Android 3.0 release, to give you a head-start on developing applications for it.
532 </p>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700533
Scott Maincc089092011-01-17 16:44:10 -0800534 <p>See the <a
535 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
536 about how to set up the preview SDK and get started.</p>
537 <style type="text/css">
538 .non-preview { display:none; }
539 </style>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700540
Scott Main17e47ad2011-05-27 09:52:19 -0700541 <?cs else ?><?cs # it's normal offline docs ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700542
Scott Maine4d8f1b2012-06-21 18:03:05 -0700543 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
544 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700545 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700546 body .offline { display:block; }
547 body .online { display:none; }
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700548 </style>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700549 <script>
550 $('.reqs').show();
551 </script>
Scott Maincc089092011-01-17 16:44:10 -0800552 <?cs /if ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700553
Scott Main58286dc2011-01-17 18:23:21 -0800554 <?cs /if ?> <?cs # end if/else online ?>
Ricardo Cerverafd0be922014-03-25 12:33:33 -0700555
Scott Maincc089092011-01-17 16:44:10 -0800556<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700557
Scott Maincc089092011-01-17 16:44:10 -0800558<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700559
The Android Open Source Project88b60792009-03-03 19:28:42 -0800560
The Android Open Source Project88b60792009-03-03 19:28:42 -0800561</div><!-- end jd-content -->
562
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700563<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800564<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700565<?cs /if ?>
566
Scott Maincc089092011-01-17 16:44:10 -0800567</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800568
569<?cs include:"trailer.cs" ?>
570
Dirk Dougherty8f6949b2013-12-03 18:49:24 -0800571<!-- Start of Tag -->
572<script type="text/javascript">
573var axel = Math.random() + "";
574var a = axel * 10000000000000;
575document.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>');
576</script>
577<noscript>
578<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>
579</noscript>
580<!-- End of Tag -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800581</body>
582</html>
583
584
585