blob: f6c7cfad63a32b661a512ab765f6006e28eb745b [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 Main3652a112012-01-30 13:03:08 -080015<body class="gc-documentation" itemscope itemtype="http://schema.org/CreativeWork">
The Android Open Source Project88b60792009-03-03 19:28:42 -080016<a name="top"></a>
17<?cs call:custom_masthead() ?>
18
19<?cs call:sdk_nav() ?>
20
The Android Open Source Project88b60792009-03-03 19:28:42 -080021<?cs if:sdk.redirect ?>
Dirk Doughertyd8cfce02009-07-15 16:37:21 -070022
Dirk Dougherty19a4bd12009-04-24 11:30:32 -070023<div class="g-unit">
24 <div id="jd-content">
Scott Maincc089092011-01-17 16:44:10 -080025 <p>Redirecting to
26 <a href="<?cs var:toroot ?>sdk/<?cs
Scott Mainb66a5c02010-07-08 11:29:28 -070027 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 Doughertyd8cfce02009-07-15 16:37:21 -070031 </a> ...</p>
Scott Maincc089092011-01-17 16:44:10 -080032
The Android Open Source Project88b60792009-03-03 19:28:42 -080033<?cs else ?>
Scott Maincc089092011-01-17 16:44:10 -080034<?cs # else, if NOT redirect ...
35#
36#
37# The following is for SDK/NDK pages
38#
39#
40?>
41
Dirk Dougherty19a4bd12009-04-24 11:30:32 -070042<div class="g-unit" id="doc-content" >
The Android Open Source Project88b60792009-03-03 19:28:42 -080043 <div id="jd-header" class="guide-header" >
44 <span class="crumb">&nbsp;</span>
Scott Main3652a112012-01-30 13:03:08 -080045 <h1 itemprop="name"><?cs if:android.whichdoc == "online" ?>Download the <?cs /if ?><?cs
46var:page.title ?></h1>
The Android Open Source Project88b60792009-03-03 19:28:42 -080047 </div>
48
Scott Main3652a112012-01-30 13:03:08 -080049 <div id="jd-content" itemprop="description">
The Android Open Source Project88b60792009-03-03 19:28:42 -080050
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 Dougherty3d3d7b72009-10-21 19:52:52 -070054 <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -080055 </div>
56<?cs /if ?>
Dirk Doughertye6be85f2009-06-24 11:01:03 -070057
The Android Open Source Project88b60792009-03-03 19:28:42 -080058
Scott Maincc089092011-01-17 16:44:10 -080059<?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 Project88b60792009-03-03 19:28:42 -080075
Robert Ly706e41e2010-11-02 18:35:43 -070076<p>The Android NDK is a companion tool to the Android SDK that lets you build
77performance-critical portions of your apps in native code. It provides headers and
78libraries that allow you to build activities, handle user input, use hardware sensors,
79access application resources, and more, when programming in C or C++. If you write
80native code, your applications are still packaged into an .apk file and they still run
81inside of a virtual machine on the device. The fundamental Android application model
82does not change.</p>
83
Scott Mainec97fd32010-11-04 21:02:14 -070084<p>Using native code does not result in an automatic performance increase,
Robert Ly706e41e2010-11-02 18:35:43 -070085but always increases application complexity. If you have not run into any limitations
Scott Mainec97fd32010-11-04 21:02:14 -070086using the Android framework APIs, you probably do not need the NDK. Read <a
87href="<?cs var:toroot ?>sdk/ndk/overview.html">What is the NDK?</a> for more information about what
88the NDK offers and whether it will be useful to you.
Robert Ly706e41e2010-11-02 18:35:43 -070089</p>
90<p>
91The NDK is designed for use <em>only</em> in conjunction with the
Scott Mainec97fd32010-11-04 21:02:14 -070092Android SDK. If you have not already installed and setup the <a
93href="http://developer.android.com/sdk/index.html">Android SDK</a>, please
Robert Ly706e41e2010-11-02 18:35:43 -070094do so before downloading the NDK.
95</p>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070096
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070097 <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 Doughertye6be85f2009-06-24 11:01:03 -0700107 <a 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 -0700108 </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 Doughertye6be85f2009-06-24 11:01:03 -0700115 <a 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 -0700116 </td>
117 <td><?cs var:ndk.mac_bytes ?> bytes</td>
118 <td><?cs var:ndk.mac_checksum ?></td>
119 </tr>
120 <tr>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700121 <td>Linux 32/64-bit (x86)</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700122 <td>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700123 <a 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 -0700124 </td>
125 <td><?cs var:ndk.linux_bytes ?> bytes</td>
126 <td><?cs var:ndk.linux_checksum ?></td>
127 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700128 </table>
129
Scott Maincc089092011-01-17 16:44:10 -0800130 <?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 Mainb73777e2010-11-22 15:02:01 -0800146 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700147
Scott Mainbadffa82010-11-08 12:28:14 -0800148 <p>Welcome Developers! If you are new to the Android SDK, please read the steps below, for an
149overview of how to set up the SDK. </p>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800150
Scott Mainf086a6e2010-10-27 22:35:24 -0700151 <p>If you're already using the Android SDK, you should
152update to the latest tools or platform using the <em>Android SDK and AVD Manager</em>, rather than
153downloading a new SDK starter package. See <a
Scott Maindad569b2010-12-05 18:03:23 -0800154href="<?cs var:toroot ?>sdk/adding-components.html">Adding SDK Components</a>.</p>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800155
The Android Open Source Project88b60792009-03-03 19:28:42 -0800156 <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 Maincc089092011-01-17 16:44:10 -0800164 <td rowspan="2">Windows</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800165 <td>
Scott Maina1b358a2010-06-24 16:36:54 -0700166 <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 Project88b60792009-03-03 19:28:42 -0800168 </td>
169 <td><?cs var:sdk.win_bytes ?> bytes</td>
170 <td><?cs var:sdk.win_checksum ?></td>
171 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800172 <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 Project88b60792009-03-03 19:28:42 -0800181 <tr class="alt-color">
182 <td>Mac OS X (intel)</td>
183 <td>
Scott Maina1b358a2010-06-24 16:36:54 -0700184 <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 Project88b60792009-03-03 19:28:42 -0800186 </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 Maina1b358a2010-06-24 16:36:54 -0700193 <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 Project88b60792009-03-03 19:28:42 -0800195 </td>
196 <td><?cs var:sdk.linux_bytes ?> bytes</td>
197 <td><?cs var:sdk.linux_checksum ?></td>
198 </tr>
199 </table>
200
Scott Maina1b358a2010-06-24 16:36:54 -0700201
202<div id="next-steps" style="display:none">
Scott Maincc089092011-01-17 16:44:10 -0800203 <p><b><em><span id="filename"></span></em> is now downloading. Follow the steps below to
204get started.</b></p>
Scott Maina1b358a2010-06-24 16:36:54 -0700205</div>
206
207<script type="text/javascript">
208function onDownload(link) {
Scott Maina1b358a2010-06-24 16:36:54 -0700209 $("#filename").text($(link).html());
210 $("#next-steps").show();
211}
212</script>
Scott Main58286dc2011-01-17 18:23:21 -0800213 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700214
Scott Main17e47ad2011-05-27 09:52:19 -0700215 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800216 <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 Main17e47ad2011-05-27 09:52:19 -0700226
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 Maincc089092011-01-17 16:44:10 -0800232 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700233
Scott Main58286dc2011-01-17 18:23:21 -0800234 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800235
236<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700237
Scott Maincc089092011-01-17 16:44:10 -0800238<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700239
Scott Maincc089092011-01-17 16:44:10 -0800240<?cs call:tag_list(root.descr) ?>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800241
The Android Open Source Project88b60792009-03-03 19:28:42 -0800242</div><!-- end jd-content -->
243
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700244<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800245<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700246<?cs /if ?>
247
Scott Maincc089092011-01-17 16:44:10 -0800248</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800249
250<?cs include:"trailer.cs" ?>
251
252</body>
253</html>
254
255
256