aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-09-12 22:28:11 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-09-12 22:28:11 +0200
commit6123bc1e237936a3ad4c8bcfc48e49e004f09975 (patch)
tree13fd06ece8e9972b320fa21c6b29d802e84cf2ac /res
downloadBlueGPS-6123bc1e237936a3ad4c8bcfc48e49e004f09975.zip
BlueGPS-6123bc1e237936a3ad4c8bcfc48e49e004f09975.tar.gz
BlueGPS-6123bc1e237936a3ad4c8bcfc48e49e004f09975.tar.bz2
An application for using an external bluetooth GPS on Android devices.BlueGPS4Droid_1.2.0BlueGPS4Droid_1.0
The application starts a service, then connects to a Bluetooth device (NMEA GPS) and creates a mock GPS provider which can be used to replace the internal GPS. It's also possible to log the external GPS NMEA data in a file on the device.
Diffstat (limited to 'res')
-rw-r--r--res/drawable/icon.pngbin0 -> 2574 bytes
-rw-r--r--res/values-en/strings.xml48
-rw-r--r--res/values-fr/strings.xml50
-rw-r--r--res/values/strings.xml85
-rw-r--r--res/xml/pref.xml71
5 files changed, 254 insertions, 0 deletions
diff --git a/res/drawable/icon.png b/res/drawable/icon.png
new file mode 100644
index 0000000..a07c69f
--- /dev/null
+++ b/res/drawable/icon.png
Binary files differ
diff --git a/res/values-en/strings.xml b/res/values-en/strings.xml
new file mode 100644
index 0000000..52b03b6
--- /dev/null
+++ b/res/values-en/strings.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2010 Herbert von Broeuschmeul
+ Copyright (C) 2010 BluetoothGPS4Droid Project
+
+ This file is part of BluetoothGPS4Droid.
+
+ BluetoothGPS4Droid is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ BluetoothGPS4Droid is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with BluetoothGPS4Droid. If not, see : http://www.gnu.org/licenses/.
+-->
+<resources>
+<!-- we use the defaults values
+ <string name="pref_recording_params_title">Recording parameters</string>
+ <string name="pref_recording_title">Enable/Disable</string>
+ <string name="pref_recording_summary_off">Track recording is off</string>
+ <string name="pref_recording_summary_on">Track recording is on</string>
+ <string name="pref_mintime_title">Time between records</string>
+ <string name="pref_mintime_summary">Time between records in milliseconds</string>
+ <string name="pref_mindistance_title">Distance between records</string>
+ <string name="pref_mindistance_summary">Distance between records in meters</string>
+ <string name="pref_trackfile_prefix_title">Trackfiles prefix</string>
+ <string name="pref_trackfile_prefix_summary">Select the prefix for the track files</string>
+ <string name="pref_trackfile_directory_title">Trackfiles directory</string>
+ <string name="pref_trackfile_directory_summary">Select the directory for the track files</string>
+ <string name="pref_bluetooth_device_title">Choose Bluetooth GPS</string>
+ <string name="pref_bluetooth_device_summary">"Current device: %s"</string>
+
+ <string name="msg_gps_provider_started">Bluetooth GPS... started</string>
+ <string name="msg_gps_provider_stopped">Bluetooth GPS... stopped</string>
+ <string name="msg_gps_provider_already_started">Bluetooth GPS... is already on</string>
+ <string name="msg_nmea_recording_started">GPS NMEA recording... started</string>
+ <string name="msg_nmea_recording_stopped">GPS NMEA recording... stopped</string>
+ <string name="msg_nmea_recording_already_started">GPS track recording... is already on</string>
+ <string name="foreground_service_started_notification_title">BlueGps</string>
+ <string name="foreground_gps_provider_started_notification">BlueGps service started</string>
+ <string name="foreground_nmea_recording_started_notification">BlueGps NMEA recording service started</string>
+-->
+</resources>
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
new file mode 100644
index 0000000..91a5d9d
--- /dev/null
+++ b/res/values-fr/strings.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2010 Herbert von Broeuschmeul
+ Copyright (C) 2010 BluetoothGPS4Droid Project
+
+ This file is part of BluetoothGPS4Droid.
+
+ BluetoothGPS4Droid is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ BluetoothGPS4Droid is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with BluetoothGPS4Droid. If not, see : http://www.gnu.org/licenses/.
+-->
+<resources>
+ <string name="pref_start_gps_title">Start/Stop GPS</string>
+ <string name="pref_start_gps_summary_off">le GPS Bluetooth est stoppé</string>
+ <string name="pref_start_gps_summary_on">le GPS Bluetooth est démmaré</string>
+ <string name="pref_start_gps_params_title">GPS Options</string>
+ <string name="pref_recording_title">Activer/Désactiver NMEA log</string>
+ <string name="pref_recording_summary_off">Enregistrement du GPS inactif</string>
+ <string name="pref_recording_summary_on">Enregistrement du GPS actif</string>
+ <string name="pref_recording_params_title">"Paramètres d'enregistrement"</string>
+ <string name="pref_mintime_title">Intervalle de temps</string>
+ <string name="pref_mintime_summary">Durée entre les données GPS en millisecondes</string>
+ <string name="pref_mindistance_title">Intervalle de distance</string>
+ <string name="pref_mindistance_summary">Distance entre les données GPS en metres</string>
+ <string name="pref_trackfile_prefix_title">Préfixe</string>
+ <string name="pref_trackfile_prefix_summary">Indiquer un préfixe pour les fichiers de traces</string>
+ <string name="pref_trackfile_directory_title">Dossier</string>
+ <string name="pref_trackfile_directory_summary">Indiquer un répertoire pour les fichiers de traces</string>
+ <string name="pref_bluetooth_device_title">Sélection du GPS</string>
+ <string name="pref_bluetooth_device_summary">"Périphérique actuel : %s"</string>
+
+ <string name="msg_gps_provider_started">GPS Bluetooth... démarré</string>
+ <string name="msg_gps_provider_stopped">GPS Bluetooth... arrêté</string>
+ <string name="msg_gps_provider_already_started">GPS Bluetooth... déjà démarré</string>
+ <string name="msg_nmea_recording_started">Enregistrement des traces NMEA... démarré</string>
+ <string name="msg_nmea_recording_stopped">Enregistrement des traces NMEA... arrêté</string>
+ <string name="msg_nmea_recording_already_started">Enregistrement des traces GPS... déjà démarré</string>
+ <string name="foreground_service_started_notification_title">BlueGps</string>
+ <string name="foreground_gps_provider_started_notification">Bluetooth GPS démarré.</string>
+ <string name="foreground_nmea_recording_started_notification">Enregistrement des données NMEA en cours.</string>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..4e08be9
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2010 Herbert von Broeuschmeul
+ Copyright (C) 2010 BluetoothGPS4Droid Project
+
+ This file is part of BluetoothGPS4Droid.
+
+ BluetoothGPS4Droid is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ BluetoothGPS4Droid is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with BluetoothGPS4Droid. If not, see : http://www.gnu.org/licenses/.
+-->
+<resources>
+ <string name="app_name">BlueGps</string>
+
+ <string name="sirf_gga_on">PSRF103,00,00,01,01</string>
+ <string name="sirf_gll_on">PSRF103,01,00,01,01</string>
+ <string name="sirf_gll_off">PSRF103,01,00,00,01</string>
+ <string name="sirf_gsa_on">PSRF103,02,00,05,01</string>
+ <string name="sirf_gsv_on">PSRF103,03,00,05,01</string>
+ <string name="sirf_rmc_on">PSRF103,04,00,01,01</string>
+ <string name="sirf_vtg_on">PSRF103,05,00,01,01</string>
+ <string name="sirf_vtg_off">PSRF103,05,00,00,01</string>
+<!--
+ <string name="sirf_waas_on">$PSRF151,01*0F</string>
+ <string name="sirf_waas_off">$PSRF151,00*0E</string>
+-->
+ <string name="sirf_waas_on">PSRF151,01</string>
+ <string name="sirf_waas_off">PSRF151,00</string>
+
+ <string name="sirf_nmea4800_on1">A0A20018 8102010100010501050100010001000100010001000112C0 016AB0B3</string>
+ <string name="sirf_nmea_on2">A0A20002 8702 0089B0B3</string>
+ <string name="sirf_dgps_ext_on">A0A20007 85020000000000 0087B0B3</string>
+ <string name="sirf_dgps_sbas_on">A0A20007 85010000000000 0086B0B3</string>
+
+ <string name="pref_start_gps_key">startGps</string>
+ <string name="pref_recording_key">trackRecording</string>
+ <string name="pref_mindistance_key">trackMinDistance</string>
+ <string name="pref_mintime_key">trackMinTime</string>
+ <string name="pref_trackfile_directory_key">trackFileDirectory</string>
+ <string name="pref_trackfile_prefix_key">trackFilePrefix</string>
+ <string name="pref_bluetooth_device_key">bluetoothDevice</string>
+
+ <string name="defaultTrackMinDistance">0.0</string>
+ <string name="defaultTrackMinTime">0</string>
+ <string name="defaultTrackFileDirectory">/sdcard/nmea</string>
+ <string name="defaultTrackFilePrefix">btnmeatrack</string>
+
+ <string name="pref_start_gps_title">Start/Stop GPS</string>
+ <string name="pref_start_gps_summary_off">Bluetooth GPS is off</string>
+ <string name="pref_start_gps_summary_on">Bluetooth GPS is on</string>
+ <string name="pref_start_gps_params_title">GPS Options</string>
+ <string name="pref_recording_title">Enable/Disable NMEA log</string>
+ <string name="pref_recording_summary_off">Track recording is off</string>
+ <string name="pref_recording_summary_on">Track recording is on</string>
+ <string name="pref_recording_params_title">Recording parameters</string>
+ <string name="pref_mintime_title">Time between records</string>
+ <string name="pref_mintime_summary">Time between records in milliseconds</string>
+ <string name="pref_mindistance_title">Distance between records</string>
+ <string name="pref_mindistance_summary">Distance between records in meters</string>
+ <string name="pref_trackfile_prefix_title">Trackfiles prefix</string>
+ <string name="pref_trackfile_prefix_summary">Select the prefix for the track files</string>
+ <string name="pref_trackfile_directory_title">Trackfiles directory</string>
+ <string name="pref_trackfile_directory_summary">Select the directory for the track files</string>
+ <string name="pref_bluetooth_device_title">Choose Bluetooth GPS</string>
+ <string name="pref_bluetooth_device_summary">"Current device: %s"</string>
+
+ <string name="msg_gps_provider_started">Bluetooth GPS... started</string>
+ <string name="msg_gps_provider_stopped">Bluetooth GPS... stopped</string>
+ <string name="msg_gps_provider_already_started">Bluetooth GPS... is already on</string>
+ <string name="msg_nmea_recording_started">GPS NMEA recording... started</string>
+ <string name="msg_nmea_recording_stopped">GPS NMEA recording... stopped</string>
+ <string name="msg_nmea_recording_already_started">GPS track recording... is already on</string>
+ <string name="foreground_service_started_notification_title">BlueGps</string>
+ <string name="foreground_gps_provider_started_notification">BlueGps service started</string>
+ <string name="foreground_nmea_recording_started_notification">BlueGps NMEA recording service started</string>
+</resources>
diff --git a/res/xml/pref.xml b/res/xml/pref.xml
new file mode 100644
index 0000000..1752453
--- /dev/null
+++ b/res/xml/pref.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2010 Herbert von Broeuschmeul
+ Copyright (C) 2010 BluetoothGPS4Droid Project
+
+ This file is part of BluetoothGPS4Droid.
+
+ BluetoothGPS4Droid is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ BluetoothGPS4Droid is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with BluetoothGPS4Droid. If not, see : http://www.gnu.org/licenses/.
+-->
+<PreferenceScreen
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:title="@string/app_name">
+ <ListPreference
+ android:dialogTitle="@string/pref_bluetooth_device_title"
+ android:title="@string/pref_bluetooth_device_title"
+ android:key="@string/pref_bluetooth_device_key"
+ android:summary="@string/pref_bluetooth_device_summary" />
+ <CheckBoxPreference
+ android:enabled="true"
+ android:key="@string/pref_start_gps_key"
+ android:persistent="true"
+ android:title="@string/pref_start_gps_title"
+ android:summaryOn="@string/pref_start_gps_summary_on"
+ android:summaryOff="@string/pref_start_gps_summary_off" />
+ <PreferenceScreen android:title="@string/pref_recording_params_title"
+ android:enabled="false">
+ <EditTextPreference
+ android:key="@string/pref_mintime_key"
+ android:title="@string/pref_mintime_title"
+ android:defaultValue="@string/defaultTrackMinTime"
+ android:summary="@string/pref_mintime_summary"
+ android:inputType="number"/>
+ <EditTextPreference
+ android:key="@string/pref_mindistance_key"
+ android:title="@string/pref_mindistance_title"
+ android:defaultValue="@string/defaultTrackMinDistance"
+ android:inputType="numberDecimal"
+ android:summary="@string/pref_mindistance_summary" />
+ </PreferenceScreen>
+ <CheckBoxPreference
+ android:dependency="@string/pref_start_gps_key"
+ android:enabled="true"
+ android:key="@string/pref_recording_key"
+ android:persistent="true"
+ android:title="@string/pref_recording_title"
+ android:summaryOn="@string/pref_recording_summary_on"
+ android:summaryOff="@string/pref_recording_summary_off" />
+ <PreferenceScreen android:title="@string/pref_recording_params_title">
+ <EditTextPreference
+ android:key="@string/pref_trackfile_directory_key"
+ android:title="@string/pref_trackfile_directory_title"
+ android:defaultValue="@string/defaultTrackFileDirectory"
+ android:summary="@string/pref_trackfile_directory_summary" />
+ <EditTextPreference
+ android:key="@string/pref_trackfile_prefix_key"
+ android:title="@string/pref_trackfile_prefix_title"
+ android:defaultValue="@string/defaultTrackFilePrefix"
+ android:summary="@string/pref_trackfile_prefix_summary" />
+ </PreferenceScreen>
+</PreferenceScreen>