Showing progress dialog box while copying files
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开发者_如何学JAVA relevent to the scenario i am working on..
Try this answer, which contains a code example for using a ProgressDialog
with AsyncTask
.
Try to read this article, it describes how to use AsyncTask with ProgressDialog.
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.
精彩评论