05-27-2012 02:14 AM
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;";
HttpConnection httpConn = (HttpConnection)s;
05-27-2012 07:14 AM - edited 05-27-2012 07:14 AM
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!
05-28-2012 04:20 AM
"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?.