2012-07-17 547 views
1

我想从服务器下载文件,并在使用DownloadManager类时显示通知进度栏中的进度。我不想使用DownloadManager类,因为它只能保存到外部存储器,而我希望我的文件在内部保存。该怎么办 ?Android:在DownloadManager中显示下载进度条

+0

您可能需要从这一一些启示:http://blog.blundell-apps.com/tut-splashscreen-with-progress-bar/ – Blundell 2012-07-17 09:21:30

回答

0

我建议使用AsyncTask或ProgressDialog。这些工作是否会起作用?

Download a file with Android, and showing the progress in a ProgressDialog

+0

是的,我想你给的链接,但我有一个问题:我不能拉下通知栏。 (我使用了asynctask方法)。 – user1471575 2012-07-17 09:27:34

+0

asynctask工作吗? – Diamond 2012-07-17 09:39:20

+0

是的,它的工作原理。但我有一个问题:我无法拉下通知栏 – user1471575 2012-07-17 09:41:11