1

Possible Duplicate:
Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask for ProgressDialog

I am getting the following exception on making a call to a method, which eventually makes a POST method call from my async task:

"Cant Create Handler Inside Thread That Has Not Called Looper Prepare in Android" .

I am using async task to show progress dialog.

Can you please help me.

Thanks

Community
  • 1
  • 1
help
  • 120
  • 1
  • 1
  • 10

1 Answers1

0

Duplicate of Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask for ProgressDialog

In short: the progress dialog's show() method must be called from the UI thread, not from the background thread. Use onProgressUpdate or onPreExecute for that.

Community
  • 1
  • 1
Femi
  • 64,273
  • 8
  • 118
  • 148