以下代码是否有任何错误:
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