Progressdialog Bar Get Freeze
im uploading files and im trying to use progressbar while its uploading frist of all i start the upload with this code: @Override public void onClick(View v) { if(v== ivAttachm
Solution 1:
Here progress Bar is freezing in between because you are processing heavy task on the UI thread and in Android you should not process the heavy tasks on UI thread.Instead of this you can use the AsyncTask for this purpose.
From the Async task documentation:
When an asynchronous task is executed, the task goes through 4 steps:
1. onPreExecute()
2. doInBackground(Params...)
3. onProgressUpdate(Progress...)
4. onPostExecute(Result)
You can read Progress Dialog from this as well.
Post a Comment for "Progressdialog Bar Get Freeze"