Hello all,

The spinner in my ProgressDialog appears to stop spinning for the
duration of the task I'm doing, I am using a 2.2 emulator. What can I
do to avoid this stop to make the application look like its not
frozen?  This is the code i'm using:

     private class NetworkTask extends AsyncTask<Void, Void, Void>{
                private ProgressDialog progress;

                @Override
                protected void onPreExecute() {
                        progress = new ProgressDialog(OuterActivity.this);
                        progress.setIndeterminate(true);
                        progress.setMessage(getText(R.string.progressText));
                        progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);
                        progress.show();
                }

                @Override
                protected Void doInBackground(Void... params) {
                        performLongNetworkOperation();
                        return null;
                }

                @Override
                protected void onPostExecute(Void result) {
                        OuterActivity.this.listAdapter.notifyDataSetChanged();
                        progress.dismiss();
                }
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to