my below code for downloading file work fine when don\'t implementing resume
for that, after read more solution to implementing that and resolve problem i know i mu
Take a look at this answer of POMATu.
But anyway, if You downloading files over the HTTP
protocol, You can use DownloadManager - a system service (since API level 9) for long-running downloads in the background. It handles HTTP
connections, connectivity changes, reboots, and ensures each download completes successfully. And it already supports resuming and also progress notifications.
You can find many tutorials like this or examples like that, and many solutions on stackoverflow by android-download-manager tag.