The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | <?cs include:"doctype.cs" ?> |
| 2 | <?cs include:"macros.cs" ?> |
| 3 | <html> |
| 4 | <?cs if:sdk.redirect ?> |
| 5 | <head> |
| 6 | <title>Redirecting...</title> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 7 | <meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs |
| 8 | if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs |
Dirk Dougherty | e123385 | 2010-03-03 14:34:51 -0800 | [diff] [blame] | 9 | else ?>index.html<?cs /if ?>"> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 10 | <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 Main | 3652a11 | 2012-01-30 13:03:08 -0800 | [diff] [blame] | 15 | <body class="gc-documentation" itemscope itemtype="http://schema.org/CreativeWork"> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 16 | <a name="top"></a> |
| 17 | <?cs call:custom_masthead() ?> |
| 18 | |
| 19 | <?cs call:sdk_nav() ?> |
| 20 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 21 | <?cs if:sdk.redirect ?> |
Dirk Dougherty | d8cfce0 | 2009-07-15 16:37:21 -0700 | [diff] [blame] | 22 | |
Dirk Dougherty | 19a4bd1 | 2009-04-24 11:30:32 -0700 | [diff] [blame] | 23 | <div class="g-unit"> |
| 24 | <div id="jd-content"> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 25 | <p>Redirecting to |
| 26 | <a href="<?cs var:toroot ?>sdk/<?cs |
Scott Main | b66a5c0 | 2010-07-08 11:29:28 -0700 | [diff] [blame] | 27 | if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs |
| 28 | else ?>index.html<?cs /if ?>"><?cs |
| 29 | if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs |
| 30 | else ?>Download the SDK<?cs /if ?> |
Dirk Dougherty | d8cfce0 | 2009-07-15 16:37:21 -0700 | [diff] [blame] | 31 | </a> ...</p> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 32 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | <?cs else ?> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 34 | <?cs # else, if NOT redirect ... |
| 35 | # |
| 36 | # |
| 37 | # The following is for SDK/NDK pages |
| 38 | # |
| 39 | # |
| 40 | ?> |
| 41 | |
Dirk Dougherty | 19a4bd1 | 2009-04-24 11:30:32 -0700 | [diff] [blame] | 42 | <div class="g-unit" id="doc-content" > |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 43 | <div id="jd-header" class="guide-header" > |
| 44 | <span class="crumb"> </span> |
Scott Main | 3652a11 | 2012-01-30 13:03:08 -0800 | [diff] [blame] | 45 | <h1 itemprop="name"><?cs if:android.whichdoc == "online" ?>Download the <?cs /if ?><?cs |
| 46 | var:page.title ?></h1> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 47 | </div> |
| 48 | |
Scott Main | 3652a11 | 2012-01-30 13:03:08 -0800 | [diff] [blame] | 49 | <div id="jd-content" itemprop="description"> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 50 | |
| 51 | <?cs if:sdk.not_latest_version ?> |
| 52 | <div class="special"> |
| 53 | <p><strong>This is NOT the current Android SDK release.</strong></p> |
Dirk Dougherty | 3d3d7b7 | 2009-10-21 19:52:52 -0700 | [diff] [blame] | 54 | <p><a href="/sdk/index.html">Download the current Android SDK</a></p> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 55 | </div> |
| 56 | <?cs /if ?> |
Dirk Dougherty | e6be85f | 2009-06-24 11:01:03 -0700 | [diff] [blame] | 57 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 58 | |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 59 | <?cs if:ndk ?> |
| 60 | <?cs # |
| 61 | # |
| 62 | # |
| 63 | # |
| 64 | # |
| 65 | # |
| 66 | # |
| 67 | # the following is for the NDK |
| 68 | # |
| 69 | # (nested in if/else redirect) |
| 70 | # |
| 71 | # |
| 72 | # |
| 73 | # |
| 74 | ?> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 75 | |
Robert Ly | 706e41e | 2010-11-02 18:35:43 -0700 | [diff] [blame] | 76 | <p>The Android NDK is a companion tool to the Android SDK that lets you build |
| 77 | performance-critical portions of your apps in native code. It provides headers and |
| 78 | libraries that allow you to build activities, handle user input, use hardware sensors, |
| 79 | access application resources, and more, when programming in C or C++. If you write |
| 80 | native code, your applications are still packaged into an .apk file and they still run |
| 81 | inside of a virtual machine on the device. The fundamental Android application model |
| 82 | does not change.</p> |
| 83 | |
Scott Main | ec97fd3 | 2010-11-04 21:02:14 -0700 | [diff] [blame] | 84 | <p>Using native code does not result in an automatic performance increase, |
Robert Ly | 706e41e | 2010-11-02 18:35:43 -0700 | [diff] [blame] | 85 | but always increases application complexity. If you have not run into any limitations |
Scott Main | ec97fd3 | 2010-11-04 21:02:14 -0700 | [diff] [blame] | 86 | using the Android framework APIs, you probably do not need the NDK. Read <a |
| 87 | href="<?cs var:toroot ?>sdk/ndk/overview.html">What is the NDK?</a> for more information about what |
| 88 | the NDK offers and whether it will be useful to you. |
Robert Ly | 706e41e | 2010-11-02 18:35:43 -0700 | [diff] [blame] | 89 | </p> |
| 90 | <p> |
| 91 | The NDK is designed for use <em>only</em> in conjunction with the |
Scott Main | ec97fd3 | 2010-11-04 21:02:14 -0700 | [diff] [blame] | 92 | Android SDK. If you have not already installed and setup the <a |
| 93 | href="http://developer.android.com/sdk/index.html">Android SDK</a>, please |
Robert Ly | 706e41e | 2010-11-02 18:35:43 -0700 | [diff] [blame] | 94 | do so before downloading the NDK. |
| 95 | </p> |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 96 | |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 97 | <table class="download"> |
| 98 | <tr> |
| 99 | <th>Platform</th> |
| 100 | <th>Package</th> |
| 101 | <th>Size</th> |
| 102 | <th>MD5 Checksum</th> |
| 103 | </tr> |
| 104 | <tr> |
| 105 | <td>Windows</td> |
| 106 | <td> |
Dirk Dougherty | e6be85f | 2009-06-24 11:01:03 -0700 | [diff] [blame] | 107 | <a href="http://dl.google.com/android/ndk/<?cs var:ndk.win_download ?>"><?cs var:ndk.win_download ?></a> |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 108 | </td> |
| 109 | <td><?cs var:ndk.win_bytes ?> bytes</td> |
| 110 | <td><?cs var:ndk.win_checksum ?></td> |
| 111 | </tr> |
| 112 | <tr class="alt-color"> |
| 113 | <td>Mac OS X (intel)</td> |
| 114 | <td> |
Dirk Dougherty | e6be85f | 2009-06-24 11:01:03 -0700 | [diff] [blame] | 115 | <a href="http://dl.google.com/android/ndk/<?cs var:ndk.mac_download ?>"><?cs var:ndk.mac_download ?></a> |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 116 | </td> |
| 117 | <td><?cs var:ndk.mac_bytes ?> bytes</td> |
| 118 | <td><?cs var:ndk.mac_checksum ?></td> |
| 119 | </tr> |
| 120 | <tr> |
Dirk Dougherty | e6be85f | 2009-06-24 11:01:03 -0700 | [diff] [blame] | 121 | <td>Linux 32/64-bit (x86)</td> |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 122 | <td> |
Dirk Dougherty | e6be85f | 2009-06-24 11:01:03 -0700 | [diff] [blame] | 123 | <a href="http://dl.google.com/android/ndk/<?cs var:ndk.linux_download ?>"><?cs var:ndk.linux_download ?></a> |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 124 | </td> |
| 125 | <td><?cs var:ndk.linux_bytes ?> bytes</td> |
| 126 | <td><?cs var:ndk.linux_checksum ?></td> |
| 127 | </tr> |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 128 | </table> |
| 129 | |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 130 | <?cs else ?> |
| 131 | <?cs # end if NDK ... |
| 132 | # |
| 133 | # |
| 134 | # |
| 135 | # |
| 136 | # |
| 137 | # |
| 138 | # the following is for the SDK |
| 139 | # |
| 140 | # (nested in if/else redirect and if/else NDK) |
| 141 | # |
| 142 | # |
| 143 | # |
| 144 | # |
| 145 | ?> |
Scott Main | b73777e | 2010-11-22 15:02:01 -0800 | [diff] [blame] | 146 | <?cs if:android.whichdoc == "online" ?> |
Dirk Dougherty | 82a2881 | 2009-08-05 19:09:16 -0700 | [diff] [blame] | 147 | |
Scott Main | badffa8 | 2010-11-08 12:28:14 -0800 | [diff] [blame] | 148 | <p>Welcome Developers! If you are new to the Android SDK, please read the steps below, for an |
| 149 | overview of how to set up the SDK. </p> |
Dirk Dougherty | 4b2eb97 | 2010-03-08 17:31:26 -0800 | [diff] [blame] | 150 | |
Scott Main | f086a6e | 2010-10-27 22:35:24 -0700 | [diff] [blame] | 151 | <p>If you're already using the Android SDK, you should |
| 152 | update to the latest tools or platform using the <em>Android SDK and AVD Manager</em>, rather than |
| 153 | downloading a new SDK starter package. See <a |
Scott Main | dad569b | 2010-12-05 18:03:23 -0800 | [diff] [blame] | 154 | href="<?cs var:toroot ?>sdk/adding-components.html">Adding SDK Components</a>.</p> |
Dirk Dougherty | 4b2eb97 | 2010-03-08 17:31:26 -0800 | [diff] [blame] | 155 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 156 | <table class="download"> |
| 157 | <tr> |
| 158 | <th>Platform</th> |
| 159 | <th>Package</th> |
| 160 | <th>Size</th> |
| 161 | <th>MD5 Checksum</th> |
| 162 | </tr> |
| 163 | <tr> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 164 | <td rowspan="2">Windows</td> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 165 | <td> |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 166 | <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download |
| 167 | ?>"><?cs var:sdk.win_download ?></a> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 168 | </td> |
| 169 | <td><?cs var:sdk.win_bytes ?> bytes</td> |
| 170 | <td><?cs var:sdk.win_checksum ?></td> |
| 171 | </tr> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 172 | <tr> |
| 173 | <!-- blank TD from Windows rowspan --> |
| 174 | <td> |
| 175 | <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_installer |
| 176 | ?>"><?cs var:sdk.win_installer ?></a> (Recommended) |
| 177 | </td> |
| 178 | <td><?cs var:sdk.win_installer_bytes ?> bytes</td> |
| 179 | <td><?cs var:sdk.win_installer_checksum ?></td> |
| 180 | </tr> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 181 | <tr class="alt-color"> |
| 182 | <td>Mac OS X (intel)</td> |
| 183 | <td> |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 184 | <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.mac_download |
| 185 | ?>"><?cs var:sdk.mac_download ?></a> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 186 | </td> |
| 187 | <td><?cs var:sdk.mac_bytes ?> bytes</td> |
| 188 | <td><?cs var:sdk.mac_checksum ?></td> |
| 189 | </tr> |
| 190 | <tr> |
| 191 | <td>Linux (i386)</td> |
| 192 | <td> |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 193 | <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.linux_download |
| 194 | ?>"><?cs var:sdk.linux_download ?></a> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 195 | </td> |
| 196 | <td><?cs var:sdk.linux_bytes ?> bytes</td> |
| 197 | <td><?cs var:sdk.linux_checksum ?></td> |
| 198 | </tr> |
| 199 | </table> |
| 200 | |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 201 | |
| 202 | <div id="next-steps" style="display:none"> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 203 | <p><b><em><span id="filename"></span></em> is now downloading. Follow the steps below to |
| 204 | get started.</b></p> |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 205 | </div> |
| 206 | |
| 207 | <script type="text/javascript"> |
| 208 | function onDownload(link) { |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 209 | $("#filename").text($(link).html()); |
| 210 | $("#next-steps").show(); |
| 211 | } |
| 212 | </script> |
Scott Main | 58286dc | 2011-01-17 18:23:21 -0800 | [diff] [blame] | 213 | <?cs else ?> <?cs # end if online ?> |
Scott Main | a1b358a | 2010-06-24 16:36:54 -0700 | [diff] [blame] | 214 | |
Scott Main | 17e47ad | 2011-05-27 09:52:19 -0700 | [diff] [blame] | 215 | <?cs if:sdk.preview ?><?cs # it's preview offline docs ?> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 216 | <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming |
| 217 | Android 3.0 release, to give you a head-start on developing applications for it. |
| 218 | </p> |
| 219 | |
| 220 | <p>See the <a |
| 221 | href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information |
| 222 | about how to set up the preview SDK and get started.</p> |
| 223 | <style type="text/css"> |
| 224 | .non-preview { display:none; } |
| 225 | </style> |
Scott Main | 17e47ad | 2011-05-27 09:52:19 -0700 | [diff] [blame] | 226 | |
| 227 | <?cs else ?><?cs # it's normal offline docs ?> |
| 228 | <style type="text/css"> |
| 229 | p.offline-message { display:block; } |
| 230 | p.online-message { display:none; } |
| 231 | </style> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 232 | <?cs /if ?> |
Scott Main | 17e47ad | 2011-05-27 09:52:19 -0700 | [diff] [blame] | 233 | |
Scott Main | 58286dc | 2011-01-17 18:23:21 -0800 | [diff] [blame] | 234 | <?cs /if ?> <?cs # end if/else online ?> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 235 | |
| 236 | <?cs /if ?> <?cs # end if/else NDK ?> |
Dirk Dougherty | 82a2881 | 2009-08-05 19:09:16 -0700 | [diff] [blame] | 237 | |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 238 | <?cs /if ?> <?cs # end if/else redirect ?> |
Dirk Dougherty | 82a2881 | 2009-08-05 19:09:16 -0700 | [diff] [blame] | 239 | |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 240 | <?cs call:tag_list(root.descr) ?> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 241 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 242 | </div><!-- end jd-content --> |
| 243 | |
Dirk Dougherty | 19a4bd1 | 2009-04-24 11:30:32 -0700 | [diff] [blame] | 244 | <?cs if:!sdk.redirect ?> |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 245 | <?cs include:"footer.cs" ?> |
Dirk Dougherty | 19a4bd1 | 2009-04-24 11:30:32 -0700 | [diff] [blame] | 246 | <?cs /if ?> |
| 247 | |
Scott Main | cc08909 | 2011-01-17 16:44:10 -0800 | [diff] [blame] | 248 | </div><!-- end g-unit --> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 249 | |
| 250 | <?cs include:"trailer.cs" ?> |
| 251 | |
| 252 | </body> |
| 253 | </html> |
| 254 | |
| 255 | |
| 256 | |