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

Posts: 17
Registered: ‎12-20-2011
My Device: Bold 9780
My Carrier: Vodafone
Accepted Solution

Close SMS port if it is already in use.



I'm trying to open SMS port by 

MessageConnection messageConnection = (MessageConnection) Connector.open( connection_name );

it throws IOException saying "cannot be opened: SMS Port already in use". 


Is there any way to close this connection ? 

Thanks in advanced 




Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Close SMS port if it is already in use.

not if you did not create it yourself.
you should check for that, though, whenever i encountered this error i was using the port myself (instance still active or port not properly closed)
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter