diff --git a/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java b/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java index d0c1d43cd..20e9b9e07 100644 --- a/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java +++ b/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java @@ -402,6 +402,8 @@ public class BluetoothChatService { } catch (IOException e) { Log.e(TAG, "disconnected", e); connectionLost(); + // Start the service over to restart listening mode + BluetoothChatService.this.start(); break; } }