blob: 8de6668fdf55aed51390c400219dbfc8adb3cf45 [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
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070079
Scott Main25659b02012-06-22 17:02:25 -070080 <table class="download" id="download-table">
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070081 <tr>
82 <th>Platform</th>
83 <th>Package</th>
84 <th>Size</th>
85 <th>MD5 Checksum</th>
86 </tr>
87 <tr>
88 <td>Windows</td>
89 <td>
Scott Main46c58042012-10-03 16:34:52 -070090 <a onClick="_gaq.push(['_trackEvent', 'Tools', 'Download NDK', 'Link <' + <?cs var:ndk.win_download ?> + '>']);"
91 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 -070092 </td>
93 <td><?cs var:ndk.win_bytes ?> bytes</td>
94 <td><?cs var:ndk.win_checksum ?></td>
95 </tr>
96 <tr class="alt-color">
97 <td>Mac OS X (intel)</td>
98 <td>
Scott Main46c58042012-10-03 16:34:52 -070099 <a onClick="_gaq.push(['_trackEvent', 'Tools', 'Download NDK', 'Link <' + <?cs var:ndk.mac_download ?> + '>']);"
100 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 -0700101 </td>
102 <td><?cs var:ndk.mac_bytes ?> bytes</td>
103 <td><?cs var:ndk.mac_checksum ?></td>
104 </tr>
105 <tr>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700106 <td>Linux 32/64-bit (x86)</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700107 <td>
Scott Main46c58042012-10-03 16:34:52 -0700108 <a onClick="_gaq.push(['_trackEvent', 'Tools', 'Download NDK', 'Link <' + <?cs var:ndk.linux_download ?> + '>']);"
109 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 -0700110 </td>
111 <td><?cs var:ndk.linux_bytes ?> bytes</td>
112 <td><?cs var:ndk.linux_checksum ?></td>
113 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700114 </table>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700115
116 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
117 <?cs call:tag_list(root.descr) ?>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700118
Scott Maincc089092011-01-17 16:44:10 -0800119 <?cs else ?>
120<?cs # end if NDK ...
121#
122#
123#
124#
125#
126#
127# the following is for the SDK
128#
129# (nested in if/else redirect and if/else NDK)
130#
131#
132#
133#
134?>
Scott Mainb73777e2010-11-22 15:02:01 -0800135 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700136
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800137
Scott Maine4d8f1b2012-06-21 18:03:05 -0700138<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
139<?cs call:tag_list(root.descr) ?>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800140
Scott Maine4d8f1b2012-06-21 18:03:05 -0700141<div class="wrap">
142<div class="pax col-13 online" style="display:none">
The Android Open Source Project88b60792009-03-03 19:28:42 -0800143 <table class="download">
144 <tr>
145 <th>Platform</th>
146 <th>Package</th>
147 <th>Size</th>
148 <th>MD5 Checksum</th>
149 </tr>
150 <tr>
Scott Maincc089092011-01-17 16:44:10 -0800151 <td rowspan="2">Windows</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800152 <td>
Scott Main46c58042012-10-03 16:34:52 -0700153 <a onclick="onDownload(this,false)" href="http://dl.google.com/android/<?cs var:sdk.win_download
Scott Maina1b358a2010-06-24 16:36:54 -0700154?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800155 </td>
156 <td><?cs var:sdk.win_bytes ?> bytes</td>
157 <td><?cs var:sdk.win_checksum ?></td>
158 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800159 <tr>
160 <!-- blank TD from Windows rowspan -->
161 <td>
Scott Main46c58042012-10-03 16:34:52 -0700162 <a onclick="onDownload(this,false)" id="win-sdk" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700163var:sdk.win_installer
Scott Maincc089092011-01-17 16:44:10 -0800164?>"><?cs var:sdk.win_installer ?></a> (Recommended)
165 </td>
166 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
167 <td><?cs var:sdk.win_installer_checksum ?></td>
168 </tr>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800169 <tr class="alt-color">
170 <td>Mac OS X (intel)</td>
171 <td>
Scott Main46c58042012-10-03 16:34:52 -0700172 <a onclick="onDownload(this,false)" id="mac-sdk" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700173var:sdk.mac_download
Scott Maina1b358a2010-06-24 16:36:54 -0700174?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800175 </td>
176 <td><?cs var:sdk.mac_bytes ?> bytes</td>
177 <td><?cs var:sdk.mac_checksum ?></td>
178 </tr>
179 <tr>
180 <td>Linux (i386)</td>
181 <td>
Scott Main46c58042012-10-03 16:34:52 -0700182 <a onclick="onDownload(this,false)" id="linux-sdk" href="http://dl.google.com/android/<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -0700183var:sdk.linux_download
Scott Maina1b358a2010-06-24 16:36:54 -0700184?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800185 </td>
186 <td><?cs var:sdk.linux_bytes ?> bytes</td>
187 <td><?cs var:sdk.linux_checksum ?></td>
188 </tr>
189 </table>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700190
191
192<script>
Scott Main46c58042012-10-03 16:34:52 -0700193 function onDownload(link,fromButton) {
Scott Maine4d8f1b2012-06-21 18:03:05 -0700194 $("#filename").text($(link).html());
195 $("#next-steps").fadeIn('slow');
196 $("#intro").fadeOut('slow');
197 $('.pax').slideUp();
198 $('.reqs').slideUp();
Scott Main46c58042012-10-03 16:34:52 -0700199 // Deliver Analytics event
200 if (fromButton) {
201 _gaq.push(['_trackEvent', 'Tools', 'Download SDK', 'Button <' + text($(link).html()) + '>']);
202 } else {
203 _gaq.push(['_trackEvent', 'Tools', 'Download SDK', 'Link <' + text($(link).html()) + '>']);
204 }
Scott Maine4d8f1b2012-06-21 18:03:05 -0700205 }
206
207
208 var os;
209 var $link;
210 if (navigator.appVersion.indexOf("Win")!=-1) {
211 os = "Windows";
212 $link = $('#win-sdk');
213 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
214 os = "Mac";
215 $link = $('#mac-sdk');
216 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
217 os = "Linux";
218 $link = $('#linux-sdk');
219 }
The Android Open Source Project88b60792009-03-03 19:28:42 -0800220
Scott Maine4d8f1b2012-06-21 18:03:05 -0700221 if (os) {
Scott Mainf973ced2012-06-28 11:56:01 -0700222 $('#not-supported').hide();
223 $('#download-button').show();
224 $('#download-button').text("Download the SDK for " + os);
Scott Main46c58042012-10-03 16:34:52 -0700225 $('#download-button').click(function() {onDownload($link.get());}).attr('href', $link.attr('href'),true);
Scott Maine4d8f1b2012-06-21 18:03:05 -0700226 } else {
227 $('.pax').show();
Scott Maine4d8f1b2012-06-21 18:03:05 -0700228 }
Scott Maina1b358a2010-06-24 16:36:54 -0700229
Scott Maina1b358a2010-06-24 16:36:54 -0700230</script>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700231
232</div><!-- end pax -->
233</div><!-- end wrap -->
234
Scott Main58286dc2011-01-17 18:23:21 -0800235 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700236
Scott Main17e47ad2011-05-27 09:52:19 -0700237 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800238 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
239 Android 3.0 release, to give you a head-start on developing applications for it.
240 </p>
241
242 <p>See the <a
243 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
244 about how to set up the preview SDK and get started.</p>
245 <style type="text/css">
246 .non-preview { display:none; }
247 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700248
249 <?cs else ?><?cs # it's normal offline docs ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700250
251 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
252 <?cs call:tag_list(root.descr) ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700253 <style type="text/css">
Scott Maine4d8f1b2012-06-21 18:03:05 -0700254 body .offline { display:block; }
255 body .online { display:none; }
256 </style>
257 <script>
258 $('.reqs').show();
259 </script>
Scott Maincc089092011-01-17 16:44:10 -0800260 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700261
Scott Main58286dc2011-01-17 18:23:21 -0800262 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800263
264<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700265
Scott Maincc089092011-01-17 16:44:10 -0800266<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700267
The Android Open Source Project88b60792009-03-03 19:28:42 -0800268
The Android Open Source Project88b60792009-03-03 19:28:42 -0800269</div><!-- end jd-content -->
270
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700271<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800272<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700273<?cs /if ?>
274
Scott Maincc089092011-01-17 16:44:10 -0800275</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800276
277<?cs include:"trailer.cs" ?>
278
279</body>
280</html>
281
282
283