首页 \ 问答 \ Android SDK Manager究竟做了什么?(What exactly does the Android SDK Manager do?)

Android SDK Manager究竟做了什么?(What exactly does the Android SDK Manager do?)

我只下载了Android SDK,没有Android Studio,我不需要。 对于Windows,SDK以zip文件形式提供,您可以将其解压缩到您选择的文件夹中。 在解压缩之后,我运行了文件android.bat ,它启动了SDK Manager的GUI并且我下载了更多的包。

我的问题:SDK Manager除了下载和解包包之外还做了什么吗? 例如,它是否启动任何后台进程或服务? 如果是这样,那些管理方式如何,因为GUI没有办法控制它们?

PS:我正在用Android Studio标记这个问题,因为它是最密切相关的主题。

我在Windows 7上。


I downloaded the Android SDK only, without Android Studio, which I don't need. For Windows, the SDK is delivered as a zip file, and you unpack it to the folder of your choice. Following the unpacking, I ran the file android.bat, which launched the GUI for the SDK Manager and I downloaded further packages.

My question: Does the SDK Manager do anything other than downloading and unpacking packages? For example, does it kick off any background processes or services? And if so, how are those managed, since the GUI does not have means to control them?

PS: I'm tagging this question w/ Android Studio as it's the most closely related subject.

I am on Windows 7.


原文:https://stackoverflow.com/questions/41425022
更新时间:2024-03-24 09:03

最满意答案

尝试:

$(document).ready(function(e) {  
//assign some id to your select       
//attach handler and call once
    $("select[id='yourSelectId']").change(function() {
        var arg = $(this).val();
        $.each(screwHolderArr,function(){
            //alert(screwImgPath+screwColorArr[arg]);
          $('#'+this).css("background-image", "url("+screwImgPath+screwColorArr[arg]+")")
        });

    });

    //trigger change once
    $("select[id='yourSelectId']").trigger('change');
}

Try:

$(document).ready(function(e) {  
//assign some id to your select       
//attach handler and call once
    $("select[id='yourSelectId']").change(function() {
        var arg = $(this).val();
        $.each(screwHolderArr,function(){
            //alert(screwImgPath+screwColorArr[arg]);
          $('#'+this).css("background-image", "url("+screwImgPath+screwColorArr[arg]+")")
        });

    });

    //trigger change once
    $("select[id='yourSelectId']").trigger('change');
}

相关问答

更多
  • 您需要使用.prop更改它的状态,然后刷新它.checkboxradio('refresh') 。 工作演示 更新 - 取消选中其他按钮 $("#btn-all-yes").click(function () { $('[data-role="controlgroup"]').find("[type=radio]").each(function () { if ($(this).hasClass('replay-yes')) { $(this).prop('checked', true).c ...
  • 要计算该form元素中输入的数量,您可以执行以下操作: $(this).parents("form").find('input').length 参考文献: jQuery find() jQuery的长度 For a count of the number of inputs in that form element, you can do: $(this).parents("form").find('input').length References: jQuery find() jQuery len ...
  • 问题不在验证器或选择器中。 他们都是正确的。 在代码的更多行中,我尝试依赖于表单状态启用/禁用“提交”按钮: $('input[name="time"]').on('keyup blur', function () { if ($('#thresholds').valid()) { $('#run').prop('disabled', false); ...
  • 事件正在通过文档的其余部分从输入中冒出来。 在您的活动中尝试注销event.trigger: $j(':not(input)').keydown(function(event) { console.log(event.trigger); // REST OF FN 我敢打赌它不是HTMLInputElement 一种解决方案,尝试绑定输入并停止事件传播: $j('input').keydown(function(event) { event.stopPropagation(); }); 看看 ...
  • 将参数传递给触发器单击事件为 $(".my_button").trigger('click', ['btn2']); 在我的按钮上点击事件接收它 $(".my_button").click(function(e, p2){ 不检查p2是否未定义或具有某个值,如果它已使用trigger()事件trigger() $(".my_button").click(function(e, p1){ // if event fired form .trigger() method from other ...
  • 您需要为