开发者社区 问答 正文

关于android downloadmanager 的问题

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

展开
收起
爵霸 2016-03-18 14:01:32 2363 分享 版权
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
    赞同 展开评论
问答分类:
问答标签:
问答地址: