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
Developer
JoVinz
Posts: 255
Registered: ‎05-03-2012
My Device: 9930
My Carrier: Vodafone

ConnectionTimeout in Balckberry

How to implement ConnectionTimeout in blackberry using Timer class?

I am using HttpConnection to connect to web..

I have used something like thid but its not working at all:

StreamConnection s =StreamConnection)Connector.open("example.com/mypage.html;ConnectionTimeout=45000;":smileywink:;

HttpConnection httpConn = (HttpConnection)s;

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: ConnectionTimeout in BlackBerry

[ Edited ]

This has been discussed a number of times.  Rather than repeat what is on other Threads, I suggest you search the forum using the Search box you will find near the top right hand side, looking for other Threads that discuss Connection Timeout.  I'm sure you will find something.

 

Adding the ConnectionTimeout suffix only works for some connection methods.  And it is not using the Timer class!

Please use plain text.
Developer
JoVinz
Posts: 255
Registered: ‎05-03-2012
My Device: 9930
My Carrier: Vodafone

Re: ConnectionTimeout in BlackBerry

I have searched and used so many things but not working
Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: ConnectionTimeout in BlackBerry

"I have searched and used so many things but not working"

 

So that we don't get you to repeat stuff you have already done, can you go please tell us the Threads you have looked at and the things you have tried?. 

Please use plain text.