I've developed a simple application that uses bluetooth (JSR 82) to send a photo from one phone to another. I've tried this application with two Nokia 6600 and it worked fine. When I tried the application with a Nokia 6600 and a Nokia N80,the applications throws the exception "Connection failed" when the phones try to connect each other. The connection is thrown in the following code is being executed:
I can give you two aditional notes :
url = ((ServiceRecord) records.elementAt(i)).getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
conn = (StreamConnection) Connector.open(url);
- The phones can discover each other during the discovery process . They just can't connect.
- The application in the Nokia 6600 is self-signed and the application in the N80 is unsigned.
Can the problem be in the unsigned application in the N80? Not being certified, can the Symbian OS block the JSR Api? The other features of the application are all running very well.
Can the problem be in the Bluetooth versions of the two mobile phones? I guess that they are different. Can we use JSR-82 with 2 different bluetooth versions?
Can be the problem in the protocol? I am using RFCOMM.