pcatzj
V2EX  ›  Android

android async-http-client 下载文件时怎么指定路径啊,难道一定要我自己拷贝的目的地址吗?

  •  
  •   pcatzj · Dec 17, 2015 · 12642 views
    This topic created in 3871 days ago, the information mentioned may be changed or developed.
    以前没用过这个框架, afinal 下载文件失败,原因还不知,然后这个工具不知道怎么指定路径,求告知!
    TJT
        1
    TJT  
       Dec 18, 2015 via Android
    HttpClient.get(String url, new FileAsyncHttpResponseHandler(File destinationFile))

    官方文档有
    pcatzj
        2
    pcatzj  
    OP
       Dec 18, 2015
    @TJT 谢谢,昨天已经辗转找到其官方文档,解决了这个问题,感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 19:25 · PVG 03:25 · LAX 12:25 · JFK 15:25
    ♥ Do have faith in what you're doing.