Connection Timeout in Blackberry

这一生的挚爱 提交于 2019-12-13 03:26: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:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!