altosdroid: Explicitly disconnect BT on termination or 'disconnect'
authorKeith Packard <keithp@keithp.com>
Tue, 17 Feb 2015 05:19:09 +0000 (21:19 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 17 Feb 2015 05:19:09 +0000 (21:19 -0800)
commit877609a60a9f2c61c1efad8285b2a3c22f59be28
tree59def8e9ffdaeffaeeab1ab3b7632fb5d4e53d92
parentc51d39c7ea1153cd2d0dc02c47824a9f35b22fb9
altosdroid: Explicitly disconnect BT on termination or 'disconnect'

This adds an explicit message to the telemetry service telling it when
to stop trying to talk to the bluetooth device. Until this message is
received, the service will reconnect to the specified BT device.

That message is sent when you 'quit' the application, or when you 'disconnect'.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/res/menu/option_menu.xml
altosdroid/res/values/strings.xml
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java
altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java