Handle download of files on network failure
<p>I am creating an Android mobile application where I have the following requirements.</p>

<p>i>When the end-user clicks on any of the list items(thumbnail images) displayed on the screen  , the video corresponding to the image starts to download from the server &amp; ultimately the video is saved on a specific location of the mobile device.</p>

<p>Now , when there is a network failure , the download fails but the requirement is that , from the next time onwards , the downloading of the video file should start from the same place from where it was disconnected.</p>

<p>Kindly provide me the suggestions/tips/sample code to how to maintain the state of the downloads so that it gets started from the same place next time.</p>

<p>Thanks in advance.</p>

<p>Warm Regards,</p>

<p>CB</p>
