blob: 4329102ed34a048f0b5057cf124b6af5a474997c [file] [log] [blame]
Scott Main28a38972012-07-17 12:57:03 -07001page.title=Download an Archived Android SDK
Scott Main6afeb0e2013-04-16 21:05:51 -07002excludeFromSuggestions=true
Scott Main28a38972012-07-17 12:57:03 -07003hide_license_footer=true
4
5@jd:body
6
7<script type="text/javascript">
8 function verify() {
9 document.getElementById('download-button').disabled =
10!document.getElementById('checkbox').checked;
11 }
12 function submit() {
13 var location = window.location.href;
14 if (location.indexOf('?v=') != -1) {
15 var filename = location.substring(location.indexOf('=')+1,location.length);
16 if (document.getElementById('checkbox').checked) {
17 document.location = "http://dl.google.com/android/" + filename;
18 }
19 document.getElementById('click-download').setAttribute("href", "http://dl.google.com/android/"
20+ filename);
21 $("#terms-form").hide(500);
22 $("#next-steps").show(500);
23 document.getElementById('checkbox').disabled=true;
24 document.getElementById('download-button').disabled=true;
25 } else {
26 alert("You have not selected an SDK version. Please return to the SDK Archives page");
27 }
28 }
29</script>
30
31<div id="terms-form">
32 <p>Please carefully review the Android SDK License Agreement before downloading the SDK.
33The License Agreement constitutes a contract between you and Google with respect to your use of the
34SDK.</p>
35 <p class="note"><strong>Note:</strong> You must agree to this license agreement in order to
36download one of the archived SDKs, because these SDK packages contain Google software (whereas, the
37<a href="http://developer.android.com/sdk/index.html">current SDK</a> packages do not require a
38license agreement, because they contain only the open sourced SDK tools).</p>
39
40 <iframe id="terms" style="border:1px solid #888;margin:0 0 1em;height:400px;width:100%;"
41src="terms_body.html">
42 </iframe>
43
44 <p>
45 <input type="checkbox" id="checkbox" onclick="verify()" />
46 <label for="checkbox">I agree to the terms of the Android SDK License Agreement.</label>
47 </p>
48 <p>
49 <input type="submit" value="Download" id="download-button" disabled="disabled"
50onclick="submit()" />
51 </p>
52 <p>
53 <script language="javascript">
54 var loc = window.location.href;
55 if (loc.indexOf('?v=') != -1) {
56 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
57 document.write("File: " + filename);
58 }
59 </script>
60 </p>
61</div><!-- end terms-form -->
62
63<noscript>
64 <p><strong>Please enable Javascript in your browser in order to agree to the terms and download
65the SDK.</strong></p>
66</noscript>
67
68<div class="special" id="next-steps" style="display:none">
69 <p>Your download should be underway. If not, <a id="click-download">click here to start the
70download</a>.</p>
71 <p>Beware that you've just downloaded a very old version of the Android SDK, which is not
72recommended. We no longer maintain documentation about how to install these archived SDKs nor
73support the tools contained within.</p>
74 <p>We recommend that you instead download the latest <a
75href="http://developer.android.com/sdk/index.html">Android SDK starter package</a>, which includes
76the latest SDK tools and allows you to develop against any version of the Android platform, back to
77Android 1.1.</p>
78</div>
79
80<script type="text/javascript">
81 var loc = window.location.href;
82 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
83 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
84 $(".addVersionPath").each(function(i) {
85 var oldHref = $(this).attr("href");
86 $(this).attr({href: "/sdk/" + version + "/" + oldHref});
87 });
88</script>
89
90
91
92
93