次のコードに問題はありますか。
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