Skip to content Skip to sidebar Skip to footer

Asynctask: Using Web Services & Threads

I am using AsyncTask on button click to refresh the screen. Following is the sequence of events that happen on btn click progress dialog shows up The doInBackground is called and

Solution 1:

It should be:

protectedVoid onPostExecute(Boolean result)

Solution 2:

As djg noted, you have a typo in your method declaration. You can avoid these kinds of mistakes by using the annotation @Override when you're implementing methods from a super class.

Post a Comment for "Asynctask: Using Web Services & Threads"