broadcastreceiver - Is there Pause action For Download Manager in Android? -
i'm using download manager class in android download files . class can add , remove request of downloading .
is there way pause specific download resume ?
or there way ?
edit: found way, it's working:
- when pause downloading process, close file wrote on.
- when resume downloading, access file (not completed) , size
- add downloaded bytes info header of httprequest : mhttprequset.setheader("range", "bytes=" + mpreviouslydownloadedbytes + "-");
- mhttpclient.execute(mhttprequset);
Comments
Post a Comment