new Thread(){ @Override public void run() { try { Looper.prepare(); Toast.makeText(getApplicationContext(), "备份成功", 0).show(); Looper.loop(); } catch (Exception e) { Looper.prepare(); Toast.makeText(getApplicationContext(), "备份失败", 0).show(); Looper.loop(); } } }.start();