Port of legacy BluetoothChat example to Android Studio.