Im learning from Android's BluetoothChat sample app and noticed that they are using a Handler to send updates to the UI as seen here . I was wondering why they wouldn't prefer to use a callback/listener to send updates to UI?
My guess is because Handler posts messages on the Thread it was created on. If you were using callbacks, you would have to take care of calling runOnUiThread(Runnable) in order to perform any kind of UI changes.