0

以下代码是否有任何错误:

public void onclick2(View v)
    {
        final ProgressDialog dialog = ProgressDialog.show(this, "LOADING", "PLEASE WAIT",true);
        new Thread(new Runnable(){
            public void run(){
                try{
                    Thread.sleep(5000);
                    dialog.dismiss();
                }
                catch (InterruptedException e){
                    e.printStackTrace();
                }
            }
        }).start();
}

出现以下错误:

The device not found
4

1 回答 1

0

从您的控制台尝试adb start-server. 如果您在设备上启用了 USB 调试,您应该在运行时看到它adb devices

于 2012-12-06T09:31:59.337 回答