Hi!

I've got a problem with my first mobilephone program (for my Nokia 6230) I have almost finished my Midlet project without install certificate I mean every thing work fine (Bluetooth connection with GPS device, SMS Send/Receive message) and I signed midlet successfully but Bluetooth and GPS connection failed after signed Midlet.

Error message was “SecurityException”

what is this.can anybody help me plz.. I am in trouble

Thank you.

Code:

String url = null;
try
{
url = serviceRecord.getConnectionURL(requiredSecurity, false);
connection = (StreamConnection) Connector.open(url);
in = connection.openInputStream();

out = connection.openOutputStream();

}
catch (SecurityException e)
{

close();

listener.handleOpenError(this, "SecurityException: '" + e.getMessage() + "'");

return;

}