blob: 47505e68266199d7f79ed9fedd8c67b8d6319836 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001page.title=Download the Android SDK
2hide_license_footer=true
3
4@jd:body
5
Scott Main6bbf3892009-04-24 17:15:02 -07006<script type="text/javascript">
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08007 function verify() {
8 document.getElementById('download-button').disabled = !document.getElementById('checkbox').checked;
9 }
10 function submit() {
11 var location = window.location.href;
12 if (location.indexOf('?v=') != -1) {
13 var filename = location.substring(location.indexOf('=')+1,location.length);
14 if (document.getElementById('checkbox').checked) {
15 document.location = "http://dl.google.com/android/" + filename;
16 }
17 document.getElementById('click-download').setAttribute("href", "http://dl.google.com/android/" + filename);
18 $("#terms-form").hide(500);
19 $("#next-steps").show(500);
20 document.getElementById('checkbox').disabled=true;
21 document.getElementById('download-button').disabled=true;
22 } else {
23 alert("You have not selected an SDK version. Please return to the Download page");
24 }
25 }
26</script>
27
28<div id="terms-form">
29 <p>Please carefully review the Android SDK License Agreement before downloading the SDK.
30The License Agreement constitutes a contract between you and Google with respect to your use of the SDK.</p>
31
32 <iframe id="terms" style="border:1px solid #888;margin:0 0 1em;height:400px;width:95%;" src="terms_body.html">
33 </iframe>
34
35 <p>
36 <input type="checkbox" id="checkbox" onclick="verify()" />
37 <label for="checkbox">I agree to the terms of the Android SDK License Agreement.</label>
38 </p>
39 <p>
40 <input type="submit" value="Download" id="download-button" disabled="disabled" onclick="submit()" />
41 </p>
42 <p>
43 <script language="javascript">
44 var loc = window.location.href;
45 if (loc.indexOf('?v=') != -1) {
46 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
47 document.write("File: " + filename);
48 }
49 </script>
50 </p>
51</div><!-- end terms-form -->
52
53<noscript>
54 <p><strong>Please enable Javascript in your browser in order to agree to the terms and download the SDK.</strong></p>
55</noscript>
56
57<div class="special" id="next-steps" style="display:none">
58 <h2>Thank you for downloading the Android SDK!</h2>
59 <p>Your download should be underway. If not, <a id="click-download">click here to start the download</a>.</p>
Scott Mainefd83af2009-10-14 09:11:41 -070060 <p>To set up your Android development environment, please read the guide to
Scott Main1a010c12009-10-27 17:02:12 -070061 <a href="installing.html">Installing the Android SDK</a>.
Scott Mainefd83af2009-10-14 09:11:41 -070062 Once you have completed the installation, see the
63 <a href="/guide/index.html">Dev Guide</a> for documentation about
64 developing Android applications.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080065</div>
66
Scott Main6bbf3892009-04-24 17:15:02 -070067<script type="text/javascript">
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080068 var loc = window.location.href;
69 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
70 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
71 $(".addVersionPath").each(function(i) {
72 var oldHref = $(this).attr("href");
73 $(this).attr({href: "/sdk/" + version + "/" + oldHref});
74 });
75</script>
76
77
78
79
80
81
82