开发者

Http request timed out only in GPRS/EDGE environment in Android phone

开发者 https://www.devze.com 2023-01-01 16:57 出处:网络
I am developing an Android app, it will connect to the internet to load some data back. I tested it with WIFI and it works well. But when I switched to use EDGE/GPRS, it always timed out, I have set

I am developing an Android app, it will connect to the internet to load some data back.

I tested it with WIFI and it works well. But when I switched to use EDGE/GPRS, it always timed out, I have set a big timeout parameter for httpclient, but it did not help.

It may caused by the server side that it did not return back a Content-Length header. But I can not change the server code.

Anyone have experienced t开发者_JAVA百科his before?


I do not know why, the problem disappeared the next day, seems a mobile network problem.

0

精彩评论

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