I'm working on an Android app and there I have one Activity called InitActivity, where I send a request to the server in order register the user and update some data after the registration is completed.
During this action I wanted to show a ProgressDialog
as a feedback to the user.
I it is possible to use AsyncTask
's onPreExecute
and onPostExecute
to initialize and show ProgressDialog
, while the AsyncHttpClient
does its work in the doInBackground
method but is there any better solution for this?
Thanks for any suggestions!