• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Login Form example with Progress Dialog

Hi to all,
I was stucked and cannot proceed for one reason in login form.
I have a login form, it runs a AsyncTask with Progressdialog after i cannot display any other activities or screen?
I have to call any other activites inside AsyncTask so it gives me

Code:
Can't create handler inside thread that has not called Looper.prepare()

Is there any open source example about login form.
Thanks.
 
You need to create a handler inside the activity then pass a reference to the handler to your ASyncTask or Thread or Runnable. Then you can send the handler messages to manipulate the activity (such as launch or dimiss dialogs).
 
Back
Top Bottom