I want to show a circle progressdialog when some functions run in backstage. so I write such a series of code:
pd = ProgressDialog.show(GridLayoutActivity.this, "","...");
new Thread(new Runnable() {
public void run() {
someFunc();
handler.sendEmptyMessage(0);// 执行耗时的方法之后发送消给handler
}
}).start();
But the progressDialog doesn’t roll? why?
Try with Asynchronous task, here i post the example code, you may change as per you own