I have collection of ePub files in which new files can be added on user's request.
Now if user wants to download a new ePub file and hence clicks on, say get latest book
, and book starts downloading to device sdcard.
Now before download gets completed, if user
- presses back button
- he is disconnected from internet
- he terminates the application
then downloaded file remains incomplete.
When next time user opens the app, it tries to open that incomplete file resulting in possible crash of the app.
Any idea on this?