我有这个进度条代码
ProgressDialog.show(this, "VVV","DDD", false,true,new DialogInterface.OnCancelListener()
{
public void onCancel(DialogInterface dialog)
{
//msgDisplay("Action is cancelled");
}
});
如何将此代码绑定到我执行的任何操作?
例如:
1. i press the button
2. this progressbar will work
3. i run my function for doing something
4. when my function ends the progressbar will ends