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

New Developer
Posts: 4
Registered: ‎08-26-2008
My Device: Not Specified

How to cancel Connect when using Connector.open(url)?

[ Edited ]

when I using Connector.open("http://www.google.cn");


I want to cancel it and it can't link to url, stop the thread


it means cancel connect when it opening

Message Edited by MrSeven on 10-15-2008 01:54 AM
Posts: 64
Registered: ‎09-02-2008
My Device: 8830, 8100

Re: How to cancel Connect when using Connector.open(url)?



First of all, why would like to do such a thing? It seems not to be the greatest idea ...

To answer your question, the method returns a Connection object which has a close() method. Nevertheless, Connector.open() will block until it will have the connection...


Best regards!