09-16-2013 06:47 AM
I'm trying to create simple BT connection using eclipse and on device debugging... The code can see mac address and "friendlyName" of the bt device but when it comes to this line :
rawStreamConnection = (StreamConnection) Connector.open(url);
it is asking for a permission to open the connection beacuse the code doesnt have a signature yet, and when I press "yes" the app freezes on that popup window.. In the logfile I can see that it is trying to connect for about 20-30 sec and then throws an IOException... It can get the proper url addres and other details but fails to connect. I've googled for this problem and (as was adviced), tryied to place Connection part in a separate thread but that did not make any changes..
Begging for help..
09-21-2013 03:01 AM
Are you trying to connect BT device using SPP profile ? and once you installed your application make sure you have set permission to access "YES".
I suggest you implementes the bluetoothserialport listner to communicate and send data over bluetooth device.