I need advice about ProgressDialog , I show dialog like
pd = ProgressDialog.show(
Dashboard.this,
"LOADING...",
"PLEASE WAIT", true, false);
and it shows, but it when in background is intensive calculation that circle stops to spin ( like it is blocked). I am running this code above inside onClick button. What to change to avoid this blocking or that is impossible ?