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

Web and WebWorks Development

Reply
Contributor
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
Accepted Solution

know if terminal has connection

Hi, I want to know if terminal has internet connectio, because if not I save all data in SQLlite. How can I test this? And How can I simulate not connection in my simulator?

Thanks,

Contributor
Posts: 31
Registered: ‎01-06-2011
My Device: 9300

Re: know if terminal has connection

How are you accessing your remote server? Java's xmlhttprequest object? By the time the readystate property is 4, the status won't be 200. That's how yu know there was a problem with the connection.
Cheers!
Ezeozue Chidube
Seamfix Nigeria Limited (www.seamfix.com)
www.twitter.com/cezeozue