new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { // UI thread中执行,可以更新UI } });