开发者

Can I use java.net.Socket to download http content(image, mp3 file and other)?

I am a begginer in java/android. My question is: Can I download image(mp3 or other http contents) from http site using java.net.Socket? I am going to create several parallel threads for downloading the same contents.When one(thread) of them takes t开发者_StackOverflowime more MAX time, supervisor interupts it and start againg.

Thanks a lot.


Why are you trying to use java.net.socket?

You can use org.apache.http.impl.client.DefaultHttpClient.

Which is easy to implement I think.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜