开发者社区> 问答> 正文

关于android downloadmanager 的问题

DownloadManager.getUriForDownloadedFile(id)返回值为null的具体原因是什么?

展开
收起
爵霸 2016-03-18 14:01:32 2218 0
1 条回答
写回答
取消 提交回答
  • 这是api level23中的解释, 除了下载成功 都会return null

     public Uri getUriForDownloadedFile (long id)
    
    Added in API level 11
     Returns the Uri of the given downloaded file id, if the file is downloaded successfully. Otherwise, null is returned.
    
    Parameters
     id the id of the downloaded file.
     Returns
     the Uri of the given downloaded file id, if download was successful. null otherwise.
    2019-07-17 19:06:31
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载