Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 HttpConnection 从 url 获取数据时如何在黑莓中设置连接超时?我在 url 中传递 ConnectionTimeout 参数但没有工作当没有网络时,应该显示黑屏和网络错误消息。
从这里:
来自DB-00526: 注意:直接 TCP 连接或通过无线应用协议 (WAP) 网关的连接不支持 ConnectionTimeout 参数。只有通过 BlackBerry MDS Connection Service 建立的 TCP 连接支持此参数。 我怀疑这是你例外的原因。
来自DB-00526:
注意:直接 TCP 连接或通过无线应用协议 (WAP) 网关的连接不支持 ConnectionTimeout 参数。只有通过 BlackBerry MDS Connection Service 建立的 TCP 连接支持此参数。
我怀疑这是你例外的原因。