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