简体   繁体   English

Android:在DownloadManager中显示下载进度条

[英]Android: show a download progress bar as in DownloadManager

I want to download file from a server and show the progress in a notification progress bar as when using the DownloadManager class. 我想从服务器下载文件,并在使用DownloadManager类时在通知进度栏中显示进度。 I don't want to use the DownloadManager class because it only can save to external memory while I want my file to be saved internally. 我不想使用DownloadManager类,因为它只能保存到外部存储器,而我想将文件保存在内部。 What to do ? 该怎么办 ?

I'd recommend using AsyncTask or ProgressDialog. 我建议使用AsyncTask或ProgressDialog。 Would either of these work? 这些都可以吗?

Download a file with Android, and showing the progress in a ProgressDialog 使用Android下载文件,并在ProgressDialog中显示进度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM