blob: 331411f5ed29eebd6d12ece40874264a6d7d961c [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 ?>
15<body class="gc-documentation">
16<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>
Dirk Dougherty3d3d7b72009-10-21 19:52:52 -070045 <h1><?cs if:android.whichdoc == "online" ?>Download the <?cs /if ?><?cs var:page.title ?></h1>
The Android Open Source Project88b60792009-03-03 19:28:42 -080046 </div>
47
Dirk Dougherty19a4bd12009-04-24 11:30:32 -070048 <div id="jd-content">
The Android Open Source Project88b60792009-03-03 19:28:42 -080049
50<?cs if:sdk.not_latest_version ?>
51 <div class="special">
52 <p><strong>This is NOT the current Android SDK release.</strong></p>
Dirk Dougherty3d3d7b72009-10-21 19:52:52 -070053 <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
The Android Open Source Project88b60792009-03-03 19:28:42 -080054 </div>
55<?cs /if ?>
Dirk Doughertye6be85f2009-06-24 11:01:03 -070056
The Android Open Source Project88b60792009-03-03 19:28:42 -080057
Scott Maincc089092011-01-17 16:44:10 -080058<?cs if:ndk ?>
59<?cs #
60#
61#
62#
63#
64#
65#
66# the following is for the NDK
67#
68# (nested in if/else redirect)
69#
70#
71#
72#
73?>
The Android Open Source Project88b60792009-03-03 19:28:42 -080074
Robert Ly706e41e2010-11-02 18:35:43 -070075<p>The Android NDK is a companion tool to the Android SDK that lets you build
76performance-critical portions of your apps in native code. It provides headers and
77libraries that allow you to build activities, handle user input, use hardware sensors,
78access application resources, and more, when programming in C or C++. If you write
79native code, your applications are still packaged into an .apk file and they still run
80inside of a virtual machine on the device. The fundamental Android application model
81does not change.</p>
82
Scott Mainec97fd32010-11-04 21:02:14 -070083<p>Using native code does not result in an automatic performance increase,
Robert Ly706e41e2010-11-02 18:35:43 -070084but always increases application complexity. If you have not run into any limitations
Scott Mainec97fd32010-11-04 21:02:14 -070085using the Android framework APIs, you probably do not need the NDK. Read <a
86href="<?cs var:toroot ?>sdk/ndk/overview.html">What is the NDK?</a> for more information about what
87the NDK offers and whether it will be useful to you.
Robert Ly706e41e2010-11-02 18:35:43 -070088</p>
89<p>
90The NDK is designed for use <em>only</em> in conjunction with the
Scott Mainec97fd32010-11-04 21:02:14 -070091Android SDK. If you have not already installed and setup the <a
92href="http://developer.android.com/sdk/index.html">Android SDK</a>, please
Robert Ly706e41e2010-11-02 18:35:43 -070093do so before downloading the NDK.
94</p>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070095
Dirk Dougherty4e4c9192009-05-12 15:32:35 -070096 <table class="download">
97 <tr>
98 <th>Platform</th>
99 <th>Package</th>
100 <th>Size</th>
101 <th>MD5 Checksum</th>
102 </tr>
103 <tr>
104 <td>Windows</td>
105 <td>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700106 <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 -0700107 </td>
108 <td><?cs var:ndk.win_bytes ?> bytes</td>
109 <td><?cs var:ndk.win_checksum ?></td>
110 </tr>
111 <tr class="alt-color">
112 <td>Mac OS X (intel)</td>
113 <td>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700114 <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 -0700115 </td>
116 <td><?cs var:ndk.mac_bytes ?> bytes</td>
117 <td><?cs var:ndk.mac_checksum ?></td>
118 </tr>
119 <tr>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700120 <td>Linux 32/64-bit (x86)</td>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700121 <td>
Dirk Doughertye6be85f2009-06-24 11:01:03 -0700122 <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 -0700123 </td>
124 <td><?cs var:ndk.linux_bytes ?> bytes</td>
125 <td><?cs var:ndk.linux_checksum ?></td>
126 </tr>
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700127 </table>
128
Scott Maincc089092011-01-17 16:44:10 -0800129 <?cs else ?>
130<?cs # end if NDK ...
131#
132#
133#
134#
135#
136#
137# the following is for the SDK
138#
139# (nested in if/else redirect and if/else NDK)
140#
141#
142#
143#
144?>
Scott Mainb73777e2010-11-22 15:02:01 -0800145 <?cs if:android.whichdoc == "online" ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700146
Scott Mainbadffa82010-11-08 12:28:14 -0800147 <p>Welcome Developers! If you are new to the Android SDK, please read the steps below, for an
148overview of how to set up the SDK. </p>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800149
Scott Mainf086a6e2010-10-27 22:35:24 -0700150 <p>If you're already using the Android SDK, you should
151update to the latest tools or platform using the <em>Android SDK and AVD Manager</em>, rather than
152downloading a new SDK starter package. See <a
Scott Maindad569b2010-12-05 18:03:23 -0800153href="<?cs var:toroot ?>sdk/adding-components.html">Adding SDK Components</a>.</p>
Dirk Dougherty4b2eb972010-03-08 17:31:26 -0800154
The Android Open Source Project88b60792009-03-03 19:28:42 -0800155 <table class="download">
156 <tr>
157 <th>Platform</th>
158 <th>Package</th>
159 <th>Size</th>
160 <th>MD5 Checksum</th>
161 </tr>
162 <tr>
Scott Maincc089092011-01-17 16:44:10 -0800163 <td rowspan="2">Windows</td>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800164 <td>
Scott Maina1b358a2010-06-24 16:36:54 -0700165 <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
166?>"><?cs var:sdk.win_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800167 </td>
168 <td><?cs var:sdk.win_bytes ?> bytes</td>
169 <td><?cs var:sdk.win_checksum ?></td>
170 </tr>
Scott Maincc089092011-01-17 16:44:10 -0800171 <tr>
172 <!-- blank TD from Windows rowspan -->
173 <td>
174 <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_installer
175?>"><?cs var:sdk.win_installer ?></a> (Recommended)
176 </td>
177 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
178 <td><?cs var:sdk.win_installer_checksum ?></td>
179 </tr>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800180 <tr class="alt-color">
181 <td>Mac OS X (intel)</td>
182 <td>
Scott Maina1b358a2010-06-24 16:36:54 -0700183 <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.mac_download
184?>"><?cs var:sdk.mac_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800185 </td>
186 <td><?cs var:sdk.mac_bytes ?> bytes</td>
187 <td><?cs var:sdk.mac_checksum ?></td>
188 </tr>
189 <tr>
190 <td>Linux (i386)</td>
191 <td>
Scott Maina1b358a2010-06-24 16:36:54 -0700192 <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.linux_download
193?>"><?cs var:sdk.linux_download ?></a>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800194 </td>
195 <td><?cs var:sdk.linux_bytes ?> bytes</td>
196 <td><?cs var:sdk.linux_checksum ?></td>
197 </tr>
198 </table>
199
Scott Maina1b358a2010-06-24 16:36:54 -0700200
201<div id="next-steps" style="display:none">
Scott Maincc089092011-01-17 16:44:10 -0800202 <p><b><em><span id="filename"></span></em> is now downloading. Follow the steps below to
203get started.</b></p>
Scott Maina1b358a2010-06-24 16:36:54 -0700204</div>
205
206<script type="text/javascript">
207function onDownload(link) {
Scott Maina1b358a2010-06-24 16:36:54 -0700208 $("#filename").text($(link).html());
209 $("#next-steps").show();
210}
211</script>
Scott Main58286dc2011-01-17 18:23:21 -0800212 <?cs else ?> <?cs # end if online ?>
Scott Maina1b358a2010-06-24 16:36:54 -0700213
Scott Main17e47ad2011-05-27 09:52:19 -0700214 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
Scott Maincc089092011-01-17 16:44:10 -0800215 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
216 Android 3.0 release, to give you a head-start on developing applications for it.
217 </p>
218
219 <p>See the <a
220 href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
221 about how to set up the preview SDK and get started.</p>
222 <style type="text/css">
223 .non-preview { display:none; }
224 </style>
Scott Main17e47ad2011-05-27 09:52:19 -0700225
226 <?cs else ?><?cs # it's normal offline docs ?>
227 <style type="text/css">
228 p.offline-message { display:block; }
229 p.online-message { display:none; }
230 </style>
Scott Maincc089092011-01-17 16:44:10 -0800231 <?cs /if ?>
Scott Main17e47ad2011-05-27 09:52:19 -0700232
Scott Main58286dc2011-01-17 18:23:21 -0800233 <?cs /if ?> <?cs # end if/else online ?>
Scott Maincc089092011-01-17 16:44:10 -0800234
235<?cs /if ?> <?cs # end if/else NDK ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700236
Scott Maincc089092011-01-17 16:44:10 -0800237<?cs /if ?> <?cs # end if/else redirect ?>
Dirk Dougherty82a28812009-08-05 19:09:16 -0700238
Scott Maincc089092011-01-17 16:44:10 -0800239<?cs call:tag_list(root.descr) ?>
The Android Open Source Project88b60792009-03-03 19:28:42 -0800240
The Android Open Source Project88b60792009-03-03 19:28:42 -0800241</div><!-- end jd-content -->
242
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700243<?cs if:!sdk.redirect ?>
Scott Maincc089092011-01-17 16:44:10 -0800244<?cs include:"footer.cs" ?>
Dirk Dougherty19a4bd12009-04-24 11:30:32 -0700245<?cs /if ?>
246
Scott Maincc089092011-01-17 16:44:10 -0800247</div><!-- end g-unit -->
The Android Open Source Project88b60792009-03-03 19:28:42 -0800248
249<?cs include:"trailer.cs" ?>
250
251</body>
252</html>
253
254
255