Android DownloadManager get filename

前端 未结 5 742
醉酒成梦
醉酒成梦 2020-12-08 10:37

In my app you can download some files. I used the Android DownloadManager class for downloading. After the download is completed, it should show me a message th

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 10:55

    I think what you are looking for is the DownloadManager.COLUMN_TITLE

    Here is a link to the Android Documents: http://developer.android.com/reference/android/app/DownloadManager.html#COLUMN_TITLE

    And here is a tutorial that will explain more than just getting the title. It is for downloading an image from a URL and then displaying it in an application. Mighty useful I think, overall speaking.

    http://wptrafficanalyzer.in/blog/downloading-an-image-from-an-http-url-using-downloadmanager-and-displaying-in-imageview-by-dynamically-registered-broadcastreceiver/

提交回复
热议问题