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
New Developer
Hitangshu2
Posts: 39
Registered: ‎06-18-2009
My Device: BlackBerry Bold

Detecting/Preventing new or existing HTTP Connection?

Hi
 Is it possible to detect any existing or new Http Connection in the device using API? If possible then how can I detect when a new connection is created from the Blackberry browser or a third party application? Is there any listener class which listen all the connection from the device?

 

 Also if it is possible to detect the connection then is there any way to terminate/broke that connection using API?

 

 

Thanks in advance
Hitangshu

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Detecting/Preventing new or existing HTTP Connection?

No.

 

Please use plain text.
New Developer
Hitangshu2
Posts: 39
Registered: ‎06-18-2009
My Device: BlackBerry Bold

Re: Detecting/Preventing new or existing HTTP Connection?

Thank you RexDoug for your quick response. One more question here. Is it possible for any type of connection like SocketConnection, DatagramConnection etc.?
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800

Re: Detecting/Preventing new or existing HTTP Connection?

you mean connecting using SocketConnection and datagramconnection?
Please use plain text.
New Developer
Hitangshu2
Posts: 39
Registered: ‎06-18-2009
My Device: BlackBerry Bold

Re: Detecting/Preventing new or existing HTTP Connection?

Yes. I want to keep track of all the connection from the device anyway. So if any application in the device (including BB browser) connectiong using the GPRS then I want to trace them from my application.
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800

Re: Detecting/Preventing new or existing HTTP Connection?

i don't think that's possible.
Please use plain text.
New Developer
Hitangshu2
Posts: 39
Registered: ‎06-18-2009
My Device: BlackBerry Bold

Re: Detecting/Preventing new or existing HTTP Connection?

Thank you johnbibs for your quick response. Actually I also have not found any class in the API document that will solve my problem. But I want to be sure about that. May be there are some way.
Please use plain text.