DemoKit: Add support for handling connect/disconnect

Close the file descriptor when the accessory is disconnected.
Also disable and reset the control widgets when the accessory is reset.

Change-Id: Ifcdedac091428891aeb11cf43ea49b4d8fe77775
Signed-off-by: Mike Lockwood <lockwood@android.com>
3 files changed
tree: 137414a95198631989079351213b5a892ab0f9b0
  1. accessorychat/
  2. demokit/
  3. labyrinth/
  4. Android.mk