1 <?cs include:"doctype.cs" ?>
2 <?cs include:"macros.cs" ?>
4 <?cs if:sdk.redirect ?>
6 <title>Redirecting...</title>
7 <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs
8 if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
9 else ?>index.html<?cs /if ?>">
10 <link href="<?cs var:toroot ?>assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
13 <?cs include:"head_tag.cs" ?>
15 <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">
21 <?cs include:"header.cs" ?>
26 ?>class="col-13" id="doc-col"<?cs /if ?> >
28 <?cs if:sdk.redirect ?>
33 <a href="<?cs var:toroot ?>sdk/<?cs
34 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 ?>
41 <?cs # else, if NOT redirect ...
44 # The following is for SDK/NDK pages
49 <?cs if:header.hide ?><?cs else ?>
50 <h1 itemprop="name"><?cs var:page.title ?></h1>
52 <div id="jd-content" itemprop="description">
54 <?cs if:sdk.not_latest_version ?>
56 <p><strong>This is NOT the current Android SDK release.</strong></p>
57 <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
70 # the following is for the NDK
72 # (nested in if/else redirect)
80 <table class="download" id="download-table">
90 <a href="http://dl.google.com/android/ndk/<?cs var:ndk.win_download ?>"><?cs var:ndk.win_download ?></a>
92 <td><?cs var:ndk.win_bytes ?> bytes</td>
93 <td><?cs var:ndk.win_checksum ?></td>
95 <tr class="alt-color">
96 <td>Mac OS X (intel)</td>
98 <a href="http://dl.google.com/android/ndk/<?cs var:ndk.mac_download ?>"><?cs var:ndk.mac_download ?></a>
100 <td><?cs var:ndk.mac_bytes ?> bytes</td>
101 <td><?cs var:ndk.mac_checksum ?></td>
104 <td>Linux 32/64-bit (x86)</td>
106 <a href="http://dl.google.com/android/ndk/<?cs var:ndk.linux_download ?>"><?cs var:ndk.linux_download ?></a>
108 <td><?cs var:ndk.linux_bytes ?> bytes</td>
109 <td><?cs var:ndk.linux_checksum ?></td>
113 <?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
114 <?cs call:tag_list(root.descr) ?>
117 <?cs # end if NDK ...
124 # the following is for the SDK
126 # (nested in if/else redirect and if/else NDK)
132 <?cs if:android.whichdoc == "online" ?>
135 <?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
136 <?cs call:tag_list(root.descr) ?>
139 <div class="pax col-13 online" style="display:none">
140 <table class="download">
145 <th>MD5 Checksum</th>
148 <td rowspan="2">Windows</td>
150 <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
151 ?>"><?cs var:sdk.win_download ?></a>
153 <td><?cs var:sdk.win_bytes ?> bytes</td>
154 <td><?cs var:sdk.win_checksum ?></td>
157 <!-- blank TD from Windows rowspan -->
159 <a onclick="onDownload(this)" id="win-sdk" href="http://dl.google.com/android/<?cs
160 var:sdk.win_installer
161 ?>"><?cs var:sdk.win_installer ?></a> (Recommended)
163 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
164 <td><?cs var:sdk.win_installer_checksum ?></td>
166 <tr class="alt-color">
167 <td>Mac OS X (intel)</td>
169 <a onclick="onDownload(this)" id="mac-sdk" href="http://dl.google.com/android/<?cs
171 ?>"><?cs var:sdk.mac_download ?></a>
173 <td><?cs var:sdk.mac_bytes ?> bytes</td>
174 <td><?cs var:sdk.mac_checksum ?></td>
177 <td>Linux (i386)</td>
179 <a onclick="onDownload(this)" id="linux-sdk" href="http://dl.google.com/android/<?cs
180 var:sdk.linux_download
181 ?>"><?cs var:sdk.linux_download ?></a>
183 <td><?cs var:sdk.linux_bytes ?> bytes</td>
184 <td><?cs var:sdk.linux_checksum ?></td>
190 function onDownload(link) {
191 $("#filename").text($(link).html());
192 $("#next-steps").fadeIn('slow');
193 $("#intro").fadeOut('slow');
195 $('.reqs').slideUp();
201 if (navigator.appVersion.indexOf("Win")!=-1) {
203 $link = $('#win-sdk');
204 } else if (navigator.appVersion.indexOf("Mac")!=-1) {
206 $link = $('#mac-sdk');
207 } else if (navigator.appVersion.indexOf("Linux")!=-1) {
209 $link = $('#linux-sdk');
213 $('#not-supported').hide();
214 $('#download-button').show();
215 $('#download-button').text("Download the SDK for " + os);
216 $('#download-button').click(function() {onDownload($link.get());}).attr('href', $link.attr('href'));
223 </div><!-- end pax -->
224 </div><!-- end wrap -->
226 <?cs else ?> <?cs # end if online ?>
228 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
229 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
230 Android 3.0 release, to give you a head-start on developing applications for it.
234 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
235 about how to set up the preview SDK and get started.</p>
236 <style type="text/css">
237 .non-preview { display:none; }
240 <?cs else ?><?cs # it's normal offline docs ?>
242 <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
243 <?cs call:tag_list(root.descr) ?>
244 <style type="text/css">
245 body .offline { display:block; }
246 body .online { display:none; }
253 <?cs /if ?> <?cs # end if/else online ?>
255 <?cs /if ?> <?cs # end if/else NDK ?>
257 <?cs /if ?> <?cs # end if/else redirect ?>
260 </div><!-- end jd-content -->
262 <?cs if:!sdk.redirect ?>
263 <?cs include:"footer.cs" ?>
266 </div><!-- end g-unit -->
268 <?cs include:"trailer.cs" ?>