blob: 1712ae62128703ad9d4ca3a88928f9522362e37a [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>
60 <p>If you are upgrading from a previously installed version of the Android SDK, see
61 <a href="upgrading.html" class="addVersionPath">Upgrading the SDK</a>.</p>
62 <p>If you are installing for the first time, read
63 <a href="installing.html" class="addVersionPath">Installing the Android SDK</a> to get your environment set up.
64 Once you have completed your installation, visit the <em>Dev Guide</em> tab and begin with the
65 <a href="/guide/tutorials/hello-world.html">Hello World</a> tutorial to create your first
66 Android application. From there, learn more about Android with the
67 <a href="/guide/topics/fundamentals.html">Application Fundamentals</a> documentation.</p>
68 <p>If you want to re-read the license agreement, it's available to you in the <em>SDK</em> tab.</p>
69</div>
70
Scott Main6bbf3892009-04-24 17:15:02 -070071<script type="text/javascript">
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080072 var loc = window.location.href;
73 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
74 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
75 $(".addVersionPath").each(function(i) {
76 var oldHref = $(this).attr("href");
77 $(this).attr({href: "/sdk/" + version + "/" + oldHref});
78 });
79</script>
80
81
82
83
84
85
86