Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 25
Registered: ‎02-19-2013
My Device: 8520

Connection time out impementation

Hi all,

 

can any one tell me how to implement connection time out for httpConnection accessing via wifi 

 

sample code is 

 

HttpPConnection conn = (HttpConnection)Connector.open(url);

 

 

Regards

Vijay

Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: Connection time out implementation

Not easy.

 

There are other Threads that talk about setting timeouts in general for other connection types.  The following one is general as well, but I think it covers your circumstance.  So have a look at this:

http://supportforums.blackberry.com/t5/Java-Development/Consistent-HTTP-Timeout-setting/m-p/1973759