title: Using a callback vs using Handler in Android?
body: <p>Im learning from Android's <a href="https://github.com/googlesamples/android-BluetoothChat/" rel="nofollow">BluetoothChat sample app</a> and noticed that they are using a Handler to send updates to the UI as seen <a href="https://github.com/googlesamples/android-BluetoothChat/blob/master/Application/src/main/java/com/example/android/bluetoothchat/BluetoothChatService.java#L470-L492" rel="nofollow">here</a> . I was wondering why they wouldn't prefer to use a callback/listener to send updates to UI?</p>