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.