问题
How to set Connection timeout in blackberry while fetching data using HttpConnection from url? I was passing ConnectionTimeout parameter in url but not working When there is no network,blanck screen should be displayed along with network error message.
回答1:
From here:
From DB-00526:
Note: The ConnectionTimeout parameter is not supported by direct TCP connections or connections through a Wireless Application Protocol (WAP) gateway. Only TCP connections, made through the BlackBerry MDS Connection Service, support this parameter.
I suspect this is the reason for your exception.
来源:https://stackoverflow.com/questions/10650989/connection-timeout-in-blackberry