From 877609a60a9f2c61c1efad8285b2a3c22f59be28 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 16 Feb 2015 21:19:09 -0800 Subject: 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 --- altosdroid/res/values/strings.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'altosdroid/res/values/strings.xml') diff --git a/altosdroid/res/values/strings.xml b/altosdroid/res/values/strings.xml index 0cc99349..8a5b29b4 100644 --- a/altosdroid/res/values/strings.xml +++ b/altosdroid/res/values/strings.xml @@ -27,6 +27,7 @@ Connect a device + Disconnect device Quit Select radio frequency Select data rate -- cgit v1.2.3 From 85013045ca505096064aaf45c312b158d0263d2a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 28 May 2015 01:05:18 -0700 Subject: altosdroid: Add map types and map preloading UIs This adds an ugly dialog to select which maps to preload, and also adds the ability to display other map types. Signed-off-by: Keith Packard --- altosdroid/AndroidManifest.xml | 10 + .../ic_maps_indicator_current_position.png | Bin 0 -> 2079 bytes .../ic_maps_indicator_current_position.png | Bin 0 -> 1205 bytes altosdroid/res/layout/device_list.xml | 16 +- altosdroid/res/layout/map_preload.xml | 129 +++++++++ altosdroid/res/layout/map_type.xml | 47 +++ altosdroid/res/menu/option_menu.xml | 28 +- altosdroid/res/values/strings.xml | 20 ++ .../src/org/altusmetrum/AltosDroid/AltosDroid.java | 24 ++ .../org/altusmetrum/AltosDroid/AltosDroidTab.java | 3 + .../altusmetrum/AltosDroid/MapTypeActivity.java | 84 ++++++ .../altusmetrum/AltosDroid/PreloadMapActivity.java | 322 +++++++++++++++++++++ .../src/org/altusmetrum/AltosDroid/TabMap.java | 13 + .../org/altusmetrum/AltosDroid/TabMapOffline.java | 11 +- .../altusmetrum/AltosDroid/TelemetryService.java | 1 - 15 files changed, 688 insertions(+), 20 deletions(-) create mode 100644 altosdroid/res/drawable-hdpi/ic_maps_indicator_current_position.png create mode 100644 altosdroid/res/drawable-mdpi/ic_maps_indicator_current_position.png create mode 100644 altosdroid/res/layout/map_preload.xml create mode 100644 altosdroid/res/layout/map_type.xml create mode 100644 altosdroid/src/org/altusmetrum/AltosDroid/MapTypeActivity.java create mode 100644 altosdroid/src/org/altusmetrum/AltosDroid/PreloadMapActivity.java (limited to 'altosdroid/res/values/strings.xml') diff --git a/altosdroid/AndroidManifest.xml b/altosdroid/AndroidManifest.xml index 71c6fb12..592373d4 100644 --- a/altosdroid/AndroidManifest.xml +++ b/altosdroid/AndroidManifest.xml @@ -72,6 +72,16 @@ android:theme="@android:style/Theme.Dialog" android:configChanges="orientation|keyboardHidden" /> + + + + + - diff --git a/altosdroid/res/layout/map_preload.xml b/altosdroid/res/layout/map_preload.xml new file mode 100644 index 00000000..1d1fca32 --- /dev/null +++ b/altosdroid/res/layout/map_preload.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + +