sdkpage.cs revision 66888a7c420f911574c59dd10d32f62bada91adb
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
33<?cs else ?>
34<?cs # else, if NOT redirect ...
35#
36#
37# The following is for SDK/NDK pages
38#
39#
40?>
41
42<div class="g-unit" id="doc-content" >
43  <div id="jd-header" class="guide-header" >
44    <span class="crumb">&nbsp;</span>
45    <h1><?cs if:android.whichdoc == "online" ?>Download the <?cs /if ?><?cs var:page.title ?></h1>
46  </div>
47
48  <div id="jd-content">
49
50<?cs if:sdk.not_latest_version ?>
51  <div class="special">
52    <p><strong>This is NOT the current Android SDK release.</strong></p>
53    <p><a href="/sdk/index.html">Download the current Android SDK</a></p>
54  </div>
55<?cs /if ?>
56
57
58<?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?>
74
75<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
83<p>Using native code does not result in an automatic performance increase,
84but always increases application complexity. If you have not run into any limitations
85using 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.
88</p>
89<p>
90The NDK is designed for use <em>only</em> in conjunction with the
91Android SDK. If you have not already installed and setup the <a
92href="http://developer.android.com/sdk/index.html">Android SDK</a>, please
93do so before downloading the NDK.
94</p>
95
96  <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>
106  <a href="http://dl.google.com/android/ndk/<?cs var:ndk.win_download ?>"><?cs var:ndk.win_download ?></a>
107    </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>
114  <a href="http://dl.google.com/android/ndk/<?cs var:ndk.mac_download ?>"><?cs var:ndk.mac_download ?></a>
115    </td>
116    <td><?cs var:ndk.mac_bytes ?> bytes</td>
117    <td><?cs var:ndk.mac_checksum ?></td>
118  </tr>
119  <tr>
120    <td>Linux 32/64-bit (x86)</td>
121    <td>
122  <a href="http://dl.google.com/android/ndk/<?cs var:ndk.linux_download ?>"><?cs var:ndk.linux_download ?></a>
123    </td>
124    <td><?cs var:ndk.linux_bytes ?> bytes</td>
125    <td><?cs var:ndk.linux_checksum ?></td>
126  </tr>
127  </table>
128
129  <?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?>
145  <?cs if:android.whichdoc == "online" ?>
146
147  <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>
149
150  <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
153href="<?cs var:toroot ?>sdk/adding-components.html">Adding SDK Components</a>.</p>
154
155  <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>
163    <td rowspan="2">Windows</td>
164    <td>
165  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.win_download
166?>"><?cs var:sdk.win_download ?></a>
167    </td>
168    <td><?cs var:sdk.win_bytes ?> bytes</td>
169    <td><?cs var:sdk.win_checksum ?></td>
170  </tr>
171  <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>
180  <tr class="alt-color">
181    <td>Mac OS X (intel)</td>
182    <td>
183  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.mac_download
184?>"><?cs var:sdk.mac_download ?></a>
185    </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>
192  <a onclick="onDownload(this)" href="http://dl.google.com/android/<?cs var:sdk.linux_download
193?>"><?cs var:sdk.linux_download ?></a>
194    </td>
195    <td><?cs var:sdk.linux_bytes ?> bytes</td>
196    <td><?cs var:sdk.linux_checksum ?></td>
197  </tr>
198  </table>
199
200
201<div id="next-steps" style="display:none">
202  <p><b><em><span id="filename"></span></em> is now downloading. Follow the steps below to
203get started.</b></p>
204</div>
205
206<script type="text/javascript">
207function onDownload(link) {
208  $("#filename").text($(link).html());
209  $("#next-steps").show();
210}
211</script>
212  <?cs /if ?> <?cs # end if online ?>
213
214<?cs /if ?> <?cs # end if/else NDK ?>
215
216<?cs /if ?> <?cs # end if/else redirect ?>
217
218<?cs call:tag_list(root.descr) ?>
219
220</div><!-- end jd-content -->
221
222<?cs if:!sdk.redirect ?>
223<?cs include:"footer.cs" ?>
224<?cs /if ?>
225
226</div><!-- end g-unit -->
227
228<?cs include:"trailer.cs" ?>
229
230</body>
231</html>
232
233
234
235