simultaneous download of files - best way to handle it
<p>I am writing an application targeting API level 9 or higher. So, i 
have decided to go with DownloadManager Class that SDK offers. 
My question is 2 part - 
1. When i am downloading a single file, how do i display the progress 
of the download. I see i can get COLUMN_TOTAL_SIZE_BYTES and 
COLUMN_BYTES_DOWNLOADED_SO_FAR from the querying the download manager 
instance. But i am not sure if i have to put the query in a thread and 
implement a loop so that i can poll regularly to update the progress 
bar. I guess, i am not sure, how to query regularly - will it go in 
the main thread or be implemented as a runnable - the mechanism i am 
not clear. 
2. If i have to support multiple file downloads, then do i have to 
launch each one of them in it's own thread? 
Thanks.</p>
