1 page.title=Download the Android SDK 2 hide_license_footer=true 3 4 @jd:body 5 6 <script type="text/javascript"> 7 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. 30 The 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>To set up your Android development environment, please read the guide to 61 <a href="installing.html">Installing the Android SDK</a> and ensure that your development 62 machine meets the system requirements linked on that page.</p> 63 </div> 64 65 <script type="text/javascript"> 66 var loc = window.location.href; 67 var filename = loc.substring(loc.indexOf('=')+1,loc.length); 68 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.')); 69 $(".addVersionPath").each(function(i) { 70 var oldHref = $(this).attr("href"); 71 $(this).attr({href: "/sdk/" + version + "/" + oldHref}); 72 }); 73 </script> 74 75 76 77 78 79 80 81