筆記和源碼
https://blog.csdn.net/qq_45453266/article/details/104490971
https://github.com/wantao666/AndroidDemo/tree/master/DownloadDemo
https://blog.csdn.net/qq_45453266/article/details/104490971
https://github.com/wantao666/AndroidDemo/tree/master/DownloadDemo
2020-02-25
筆記和源碼
https://blog.csdn.net/qq_45453266/article/details/104490971
https://github.com/wantao666/AndroidDemo/tree/master/DownloadDemo
https://blog.csdn.net/qq_45453266/article/details/104490971
https://github.com/wantao666/AndroidDemo/tree/master/DownloadDemo
運(yùn)行報(bào)錯(cuò):NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference
2018-05-16
if(conn.getResponseCode() ==HttpURLConnection.HTTP_OK){
length=conn.getContentLength();
}
這一步的時(shí)候可能沒有那個(gè)HttpStatu.ok 用上面的就可以了
length=conn.getContentLength();
}
這一步的時(shí)候可能沒有那個(gè)HttpStatu.ok 用上面的就可以了
2018-01-23