sdkpage.cs revision ec97fd30a6af6d954f156620a69c29352e012d39
1<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
3<html>
4<?cs if:sdk.redirect ?>
5  <head>
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" />
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
21<?cs if:sdk.redirect ?>
22
23<div class="g-unit">
24  <div id="jd-content">
25    <p>Redirecting to
26    <a href="<?cs var:toroot ?>sdk/<?cs
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 ?>
31    </a> ...</p>
32<?cs else ?>
33<div class="g-unit" id="doc-content" >
34  <div id="jd-header" class="guide-header" >
35    <span class="crumb">&nbsp;</span>
36    <h1><?cs if:android.whichdoc == "online" ?>Download the <?cs /if ?><?cs var:page.title ?></h1>
37  </div>
38
39  <div id="jd-content">
40    <?cs
41    if:ndk ?><?cs
42    else ?><?cs
43      if:android.whichdoc == "online" ?><p><em><?cs
44      var:sdk.date ?></em></p><?cs
45      /if ?><?cs
46    /if ?>
47
48<?cs if:sdk.not_latest_version ?>
49  <div class="special">
50    <p><strong>This is NOT the current Android SDK release.</strong></p>
51    <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
52  </div>
53<?cs /if ?>
54
55<?cs if:android.whichdoc != "online" && !android.preview ?>
56
57<!-- <p>The sections below provide an overview of how to install the SDK package. </p> -->
58
59<?cs else ?>
60  <?cs if:ndk ?>
61
62<p>The Android NDK is a companion tool to the Android SDK that lets you build
63performance-critical portions of your apps in native code. It provides headers and
64libraries that allow you to build activities, handle user input, use hardware sensors,
65access application resources, and more, when programming in C or C++. If you write
66native code, your applications are still packaged into an .apk file and they still run
67inside of a virtual machine on the device. The fundamental Android application model
68does not change.</p>
69
70<p>Using native code does not result in an automatic performance increase,
71but always increases application complexity. If you have not run into any limitations
72using the Android framework APIs, you probably do not need the NDK. Read <a
73href="<?cs var:toroot ?>sdk/ndk/overview.html">What is the NDK?</a> for more information about what
74the NDK offers and whether it will be useful to you.
75</p>
76<p>
77The NDK is designed for use <em>only</em> in conjunction with the
78Android SDK. If you have not already installed and setup the <a
79href="http://developer.android.com/sdk/index.html">Android SDK</a>, please
80do so before downloading the NDK.
81</p>
82
83  <table class="download">
84    <tr>
85      <th>Platform</th>
86      <th>Package</th>
87      <th>Size</th>
88      <th>MD5 Checksum</th>
89  </tr>
90  <tr>
91    <td>Windows</td>
92    <td>
93  <a href="http://dl.google.com/android/ndk/<?cs var:ndk.win_download ?>"><?cs var:ndk.win_download ?></a>
94    </td>
95    <td><?cs var:ndk.win_bytes ?> bytes</td>
96    <td><?cs var:ndk.win_checksum ?></td>
97  </tr>
98  <tr class="alt-color">
99    <td>Mac OS X (intel)</td>
100    <td>
101  <a href="http://dl.google.com/android/ndk/<?cs var:ndk.mac_download ?>"><?cs var:ndk.mac_download ?></a>
102    </td>
103    <td><?cs var:ndk.mac_bytes ?> bytes</td>
104    <td><?cs var:ndk.mac_checksum ?></td>
105  </tr>
106  <tr>
107    <td>Linux 32/64-bit (x86)</td>
108    <td>
109  <a href="http://dl.google.com/android/ndk/<?cs var:ndk.linux_download ?>"><?cs var:ndk.linux_download ?></a>
110    </td>
111    <td><?cs var:ndk.linux_bytes ?> bytes</td>
112    <td><?cs var:ndk.linux_checksum ?></td>
113  </tr>
114  </table>
115
116  <?cs else ?><?cs if:android.whichdoc == "online" ?>
117
118  <?cs if:sdk.preview ?>
119  <p>Welcome developers! The next release of the Android platform will be
120  Android 1.6 and we are pleased to announce the availability of an early look
121  SDK to give you a head-start on developing applications for it. </p>
122
123  <p>The Android <?cs var:sdk.preview.version ?> platform includes a variety of
124  improvements and new features for users and developers. Additionally, the SDK
125  itself introduces several new capabilities that enable you to develop
126  applications more efficiently. See the <a href="features.html">Android <?cs
127  var:sdk.preview.version ?> Platform Highlights</a> document for a list of
128  highlights.</p>
129<?cs /if ?>
130<?cs # end if NDK ... the following is for the SDK ?>
131
132<?cs #
133    <div class="toggle-content special">
134    <p>The Android SDK has changed! If you've worked with the Android SDK before,
135    you will notice several important differences:</p>
136
137    <div class="toggle-content-toggleme" style="display:none">
138    <ul style="padding-bottom:.0;">
139    <li style="margin-top:.5em">The SDK downloadable package includes <em>only</em>
140    the latest version of the Android SDK Tools.</li>
141    <li>Once you've installed the SDK, you now use the Android SDK and AVD Manager
142    to download all of the SDK components that you need, such as Android platforms,
143    SDK add-ons, tools, and documentation. </li>
144    <li>The new approach is modular &mdash; you can install only the components you
145    need and update any or all components without affecting other parts of your
146    development environment.</li>
147    <li>In short, once you've installed the new SDK, you will not need to download
148    an SDK package again. Instead, you will use the Android SDK and AVD Manager to
149    keep your development environment up-to-date. </li>
150    </ul>
151    <p style="margin-top:0">If you are currently using the Android 1.6 SDK, you
152    do not need to install the new SDK, because your existing SDK already
153    includes the Android SDK and AVD Manager tool. To develop against Android
154    2.0.1, for example, you can just download the Android 2.0.1 platform (and
155    updated SDK Tools) into your existing SDK. Refer to <a
156    href="adding-components.html">Adding SDK Components</a>.</p>
157    </div>
158
159    <a href='#' class='toggle-content-button show' onclick="toggleContent(this,true);return false;">
160      <span>show more</span><span style='display:none'>show less</span>
161    </a>
162  </div>
163?>
164
165  <p>Welcome Developers! If you are new to the Android SDK, please read the <a
166href="#quickstart">Quick Start</a>, below, for an overview of how to install and
167set up the SDK. </p>
168
169  <p>If you're already using the Android SDK, you should
170update to the latest tools or platform using the <em>Android SDK and AVD Manager</em>, rather than
171downloading a new SDK starter package. See <a
172href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
173
174  <table class="download">
175    <tr>
176      <th>Platform</th>
177      <th>Package</th>
178      <th>Size</th>
179      <th>MD5 Checksum</th>
180  </tr>
181  <tr>
182    <td rowspan="2">Windows</td>
183    <td>
184  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
185?>"><?cs var:sdk.win_download ?></a>
186    </td>
187    <td><?cs var:sdk.win_bytes ?> bytes</td>
188    <td><?cs var:sdk.win_checksum ?></td>
189  </tr>
190  <tr>
191    <!-- blank TD from Windows rowspan -->
192    <td>
193  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_installer
194?>"><?cs var:sdk.win_installer ?></a> (Recommended)
195    </td>
196    <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
197    <td><?cs var:sdk.win_installer_checksum ?></td>
198  </tr>
199  <tr class="alt-color">
200    <td>Mac OS X (intel)</td>
201    <td>
202  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.mac_download
203?>"><?cs var:sdk.mac_download ?></a>
204    </td>
205    <td><?cs var:sdk.mac_bytes ?> bytes</td>
206    <td><?cs var:sdk.mac_checksum ?></td>
207  </tr>
208  <tr>
209    <td>Linux (i386)</td>
210    <td>
211  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.linux_download
212?>"><?cs var:sdk.linux_download ?></a>
213    </td>
214    <td><?cs var:sdk.linux_bytes ?> bytes</td>
215    <td><?cs var:sdk.linux_checksum ?></td>
216  </tr>
217  <?cs if:adt.zip_download ?>
218  <tr class="alt-color">
219    <td>ADT Plugin for Eclipse <?cs var:adt.zip_version ?></td>
220    <td>
221  <a href="http://dl.google.com/android/<?cs var:adt.zip_download ?>"><?cs var:adt.zip_download ?></a>
222    </td>
223    <td><?cs var:adt.zip_bytes ?> bytes</td>
224    <td><?cs var:adt.zip_checksum ?></td>
225  </tr>
226  <?cs /if ?>
227  </table>
228
229
230<div id="next-steps" style="display:none">
231  <p><b><em><span id="filename"></span></em> is now downloading. Follow the steps below to
232get started.</b></p>
233</div>
234
235<script type="text/javascript">
236function onDownload(link) {
237  $("#filename").text($(link).html());
238  $("#next-steps").show();
239}
240</script>
241
242  <?cs /if ?>
243 <?cs /if ?>
244<?cs /if ?>
245
246<?cs if:android.whichdoc != "online" && sdk.preview ?>
247  <p>Welcome developers! The next release of the Android platform will be
248Android <?cs var:sdk.preview.version ?> and we are pleased to announce the
249availability of an early look SDK to give you a head-start on developing
250applications for it. </p>
251
252  <p>The Android <?cs var:sdk.preview.version ?> platform includes a variety of
253improvements and new features for users and developers. Additionally, the SDK
254itself introduces several new capabilities that enable you to develop
255applications more efficiently. See the <a
256href="http://developer.android.com/sdk/preview/features.html">Android
257<?cs var:sdk.preview.version ?> Highlights</a> document for a list of
258highlights.</p>
259<?cs /if ?>
260
261      <?cs call:tag_list(root.descr) ?>
262
263<?cs /if ?>
264</div><!-- end jd-content -->
265
266<?cs if:!sdk.redirect ?>
267     <?cs include:"footer.cs" ?>
268<?cs /if ?>
269
270</div><!-- end doc-content -->
271
272<?cs include:"trailer.cs" ?>
273
274</body>
275</html>
276
277
278
279