2011-08-24 59 views

回答

1

第三句:「下載管理器會在後臺進行下載,照顧HTTP交互和重試下載失敗後,或在連接的變化,並重新啓動系統。'閱讀有多難?你在尋找什麼樣的例子?

+0

我想知道的下載管理器具有這樣的功能。 – user898366

+0

http://gundumw100.iteye.com/blog/906072 – user898366

+0

如果下載最終失敗會發生什麼?有沒有辦法至少可以通知下載失敗? – Ben

0

Android 2.3中的DownloadManager具有恢復中斷下載功能。我是從Android源代碼DownloadThread.java:

/** * Prepare the destination file to receive data. If the file already exists, we'll set up * appropriately for resumption. */ private void setupDestinationFile(State state, InnerState innerState)