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
Posts: 216
Registered: ‎09-11-2008
My Device: 9000(Bold)

UDPDatagramConnection problem

Hi,

 

I'm trying to open a UDPDatagramConnection in my application using the following code:

 

socket=(UDPDatagramConnection)Connector.open("datagram://" + port);

 

 

but i'm getting exception: BAD ADDRESS

I've read the following post (http://supportforums.blackberry.com/t5/Java-Development/Problem-sending-udp-datagram/m-p/51189) but still couldn't make it work.

 

Does anyone have an idea?

Thx

 

Highlighted
Developer
Posts: 216
Registered: ‎09-11-2008
My Device: 9000(Bold)

Re: UDPDatagramConnection problem

any idea?