Download File with Notification
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
精彩评论