开发者

Download File with Notification

开发者 https://www.devze.com 2023-03-09 10:04 出处:网络
I\'ve been trying to complete th开发者_运维问答is for the past week, but i can\'t seem to get it to work!

I've been trying to complete th开发者_运维问答is for the past week, but i can't seem to get it to work!

I have successfully created a notification that has a ProgressBar, and i have it incrementing across (in a seperate thread) with Sleep(1000); I also have a method downloadFile(String url) which successfully downloads a file in a separate thread (with no UI), but i can't seem to be able to integrate them at all!

Any help would be appreciated, Cheers


You could use AsyncTask for it.

Examples are on the link itself

0

精彩评论

暂无评论...
验证码 换一张
取 消