hi
i am trying to connect two devices through bluetooth , but not getting the local devices friendlyname (getFriendlyName()).
code:
LocalDevice loc;
String name;
// Set UUID
disc.setServiceUUID( "20000000000010008000006057028C19" );
// Check if Bluetooth is turned on
try
{
loc = LocalDevice.getLocalDevice(); //
System.out.println("localdevice>>"+loc);
name=loc.getFriendlyName();
System.out.println("nameeee>>"+name);
}
catch( BluetoothStateException e )
{ // display user notification
showAlertAndExit( "", "Please switch Bluetooth on!", AlertType.ERROR );
return;
}
// Sets the name how this device is shown to the remote user
disc.setName( name );
