执行不会抛出异常,也不更新界面
new Thread() { public void run() { try { Log.i(TAG, "run...s"); Thread.sleep(1000); textView.setText("update view"); Log.i(TAG, "run...e"); } catch (Exception e) { } }; }.start(); 执行不会抛出异常,也不更新界面,从logl来看不会执行到run...e,这是怎么回事?
new Thread() { public void run() { try { Log.i(TAG, "run...s"); Thread.sleep(1000); textView.setText("update view"); Log.i(TAG, "run...e"); } catch (Exception e) { } }; }.start(); 执行不会抛出异常,也不更新界面,从logl来看不会执行到run...e,这是怎么回事?
2015-01-08
举报