<?cs include:"doctype.cs" ?> <?cs include:"macros.cs" ?> <html> <?cs if:sdk.redirect ?> <head> <title>Redirecting...</title> <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs else ?>index.html<?cs /if ?>"> <link href="<?cs var:toroot ?>assets/android-developer-docs.css" rel="stylesheet" type="text/css" /> </head> <?cs else ?> <?cs include:"head_tag.cs" ?> <?cs /if ?> <body class="gc-documentation <?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs elif:design ?>design<?cs elif:distribute ?>distribute<?cs /if ?>" itemscope itemtype="http://schema.org/CreativeWork"> <a name="top"></a> <?cs include:"header.cs" ?> <div <?cs if:fullpage ?><?cs else ?>class="col-13" id="doc-col"<?cs /if ?> > <?cs if:sdk.redirect ?> <div class="g-unit"> <div id="jd-content"> <p>Redirecting to <a href="<?cs var:toroot ?>sdk/<?cs if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs else ?>index.html<?cs /if ?>"><?cs if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs else ?>Download the SDK<?cs /if ?> </a> ...</p> <?cs else ?> <?cs # else, if NOT redirect ... # # # The following is for SDK/NDK pages # # ?> <?cs if:header.hide ?><?cs else ?> <h1 itemprop="name"><?cs var:page.title ?></h1> <?cs /if ?> <div id="jd-content" itemprop="description"> <?cs if:sdk.not_latest_version ?> <div class="special"> <p><strong>This is NOT the current Android SDK release.</strong></p> <p><a href="/sdk/index.html">Download the current Android SDK</a></p> </div> <?cs /if ?> <?cs if:ndk ?> <?cs # # # # # # # # the following is for the NDK # # (nested in if/else redirect) # # # # ?> <table class="download" id="download-table"> <tr> <th>Platform</th> <th>Package</th> <th>Size</th> <th>MD5 Checksum</th> </tr> <tr> <td>Windows</td> <td> <a href="http://dl.google.com/android/ndk/<?cs var:ndk.win_download ?>"><?cs var:ndk.win_download ?></a> </td> <td><?cs var:ndk.win_bytes ?> bytes</td> <td><?cs var:ndk.win_checksum ?></td> </tr> <tr class="alt-color"> <td>Mac OS X (intel)</td> <td> <a href="http://dl.google.com/android/ndk/<?cs var:ndk.mac_download ?>"><?cs var:ndk.mac_download ?></a> </td> <td><?cs var:ndk.mac_bytes ?> bytes</td> <td><?cs var:ndk.mac_checksum ?></td> </tr> <tr> <td>Linux 32/64-bit (x86)</td> <td> <a href="http://dl.google.com/android/ndk/<?cs var:ndk.linux_download ?>"><?cs var:ndk.linux_download ?></a> </td> <td><?cs var:ndk.linux_bytes ?> bytes</td> <td><?cs var:ndk.linux_checksum ?></td> </tr> </table> <?cs ######## HERE IS THE JD DOC CONTENT ######### ?> <?cs call:tag_list(root.descr) ?> <?cs else ?> <?cs # end if NDK ... # # # # # # # the following is for the SDK # # (nested in if/else redirect and if/else NDK) # # # # ?> <?cs if:android.whichdoc == "online" ?> <?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?> <?cs call:tag_list(root.descr) ?> <div class="wrap"> <div class="pax col-13 online" style="display:none"> <table class="download"> <tr> <th>Platform</th> <th>Package</th> <th>Size</th> <th>MD5 Checksum</th> </tr> <tr> <td rowspan="2">Windows</td> <td> <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download ?>"><?cs var:sdk.win_download ?></a> </td> <td><?cs var:sdk.win_bytes ?> bytes</td> <td><?cs var:sdk.win_checksum ?></td> </tr> <tr> <!-- blank TD from Windows rowspan --> <td> <a onclick="onDownload(this)" id="win-sdk" href="http://dl.google.com/android/<?cs var:sdk.win_installer ?>"><?cs var:sdk.win_installer ?></a> (Recommended) </td> <td><?cs var:sdk.win_installer_bytes ?> bytes</td> <td><?cs var:sdk.win_installer_checksum ?></td> </tr> <tr class="alt-color"> <td>Mac OS X (intel)</td> <td> <a onclick="onDownload(this)" id="mac-sdk" href="http://dl.google.com/android/<?cs var:sdk.mac_download ?>"><?cs var:sdk.mac_download ?></a> </td> <td><?cs var:sdk.mac_bytes ?> bytes</td> <td><?cs var:sdk.mac_checksum ?></td> </tr> <tr> <td>Linux (i386)</td> <td> <a onclick="onDownload(this)" id="linux-sdk" href="http://dl.google.com/android/<?cs var:sdk.linux_download ?>"><?cs var:sdk.linux_download ?></a> </td> <td><?cs var:sdk.linux_bytes ?> bytes</td> <td><?cs var:sdk.linux_checksum ?></td> </tr> </table> <script> function onDownload(link) { $("#filename").text($(link).html()); $("#next-steps").fadeIn('slow'); $("#intro").fadeOut('slow'); $('.pax').slideUp(); $('.reqs').slideUp(); } var os; var $link; if (navigator.appVersion.indexOf("Win")!=-1) { os = "Windows"; $link = $('#win-sdk'); } else if (navigator.appVersion.indexOf("Mac")!=-1) { os = "Mac"; $link = $('#mac-sdk'); } else if (navigator.appVersion.indexOf("Linux")!=-1) { os = "Linux"; $link = $('#linux-sdk'); } if (os) { $('#not-supported').hide(); $('#download-button').show(); $('#download-button').text("Download the SDK for " + os); $('#download-button').click(function() {onDownload($link.get());}).attr('href', $link.attr('href')); } else { $('.pax').show(); } </script> </div><!-- end pax --> </div><!-- end wrap --> <?cs else ?> <?cs # end if online ?> <?cs if:sdk.preview ?><?cs # it's preview offline docs ?> <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming Android 3.0 release, to give you a head-start on developing applications for it. </p> <p>See the <a href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information about how to set up the preview SDK and get started.</p> <style type="text/css"> .non-preview { display:none; } </style> <?cs else ?><?cs # it's normal offline docs ?> <?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?> <?cs call:tag_list(root.descr) ?> <style type="text/css"> body .offline { display:block; } body .online { display:none; } </style> <script> $('.reqs').show(); </script> <?cs /if ?> <?cs /if ?> <?cs # end if/else online ?> <?cs /if ?> <?cs # end if/else NDK ?> <?cs /if ?> <?cs # end if/else redirect ?> </div><!-- end jd-content --> <?cs if:!sdk.redirect ?> <?cs include:"footer.cs" ?> <?cs /if ?> </div><!-- end g-unit --> <?cs include:"trailer.cs" ?> </body> </html>