0
是否有下面的代碼的任何故障:Android 4.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
它與你的代碼無關。您可能需要重新啓動adb。 –
我想顯示進度條5秒,並確認 – user881807
對您有好處。問題仍然與您的代碼無關 – Blackbelt