I am working on File Manager kind of application in which while copying files i want to show progress dialog,I tried using AsyncTask but couldn't do it well can anyone please send me some code relevent to the scenario i am working on..
Asked
Active
Viewed 2,879 times
4
-
Where did you get stuck using asynctask? – statenjason Mar 14 '11 at 15:33
-
use an async task, tell us what problems you had – james Mar 14 '11 at 15:33
-
possible duplicate of [How to display progress dialog before starting an activity in Android?](http://stackoverflow.com/questions/5202158/how-to-display-progress-dialog-before-starting-an-activity-in-android) – Matthew Willis Mar 14 '11 at 15:36
3 Answers
2
Try this answer, which contains a code example for using a ProgressDialog with AsyncTask.
Community
- 1
- 1
Matthew Willis
- 44,487
- 10
- 97
- 87
2
Try to read this article, it describes how to use AsyncTask with ProgressDialog.
Vladimir Ivanov
- 42,109
- 17
- 76
- 102
1
If you haven't already, you should check out this page on the Android developers site. It not only gives the javadocs for asynctask, but it explains how to use it.
jbranchaud
- 5,679
- 9
- 43
- 69