diff --git a/res/values/strings.xml b/res/values/strings.xml index 634ed61..6adc226 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -361,6 +361,7 @@ Bluetooth is not supported! Please enable Bluetooth! Please configure a Bluetooth TNC! +Could not connect to %s! Please turn on the device and close other Bluetooth connections. Requesting bluetooth SCO link... Bluetooth SCO link established. diff --git a/src/backend/BluetoothTnc.scala b/src/backend/BluetoothTnc.scala index a714c3d..ed2848d 100644 --- a/src/backend/BluetoothTnc.scala +++ b/src/backend/BluetoothTnc.scala @@ -107,7 +107,12 @@ class BluetoothTnc(service : AprsService, prefs : PrefsWrapper) extends AprsBack init_socket() service.postPosterStarted() } catch { - case e : Exception => e.printStackTrace(); service.postAbort(e.toString()); running = false; + case e : Exception => { + e.printStackTrace(); + service.postAbort(service.getString(R.string.bt_error_connect, + tnc.getName())); + running = false; + } } while (running) { try {