Connection Timeout in Blackberry

2019-09-16 19:16发布

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条回答
Fickle 薄情
2楼-- · 2019-09-16 19:51

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.

查看更多
登录 后发表回答