I am working on an activity which uses async task. So I have created an animated activity which I want to show in onPreExecute of this async task and I don't know how to do it.
So is there any way to solve my query?
I am working on an activity which uses async task. So I have created an animated activity which I want to show in onPreExecute of this async task and I don't know how to do it.
So is there any way to solve my query?
In onCreate call some like below
mdialog=new Dialog(this);
new LongOperation().execute("");
Then override onPostExecute:
@Override
protected void onPostExecute() {
mdialog.dismiss();
}