Skip to content

RF Sentinel (RFSentinel): free, open-source police detector app for Android. Spots police body cams, Flock ALPR cameras, AirTag trackers, Remote ID drones, smart glasses and fake cell towers from Bluetooth LE and WiFi. No root.

Setting to turn off the spoken "GPS connected" (radar-detector sound)

CIS-C0c30f400de242
diff --git a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
index 0cf81c0..37f07aa 100644
--- a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
@@ -487,7 +487,7 @@ class SettingsActivity : AppCompatActivity() {
"Radar-detector sound (off by default): radar-detector alert sounds instead of the plain beeps - " +
"by strength (effect 1 strong, 2 probable, 3 weak, 4 following) or always the effect you pick - then " +
"the short voice says what it is (\"Body cam\"); the proximity beeps use a pulse of the same effect. " +
- "\"GPS connected\" when the GPS locks; optional start beep (power-on sweep) when a scan starts, off by default.\n\n" +
+ "\"GPS connected\" when the GPS locks (can be turned off); optional start beep (power-on sweep) when a scan starts, off by default.\n\n" +
"Intro sound (off by default): plays when a scan starts.\n\n" +
"Re-alert: how long before the same device can alert again."),
Section("voice", binding.headerVoice, binding.sectionVoice,
@@ -817,6 +817,7 @@ class SettingsActivity : AppCompatActivity() {
binding.thresholdMedium.text = tagged("Probable", "recommended")
info(binding.radarBeepSwitch, "Beeps faster as a flagged device gets closer, like a radar detector.")
info(binding.detectorSoundSwitch, "Alerts use radar-detector tones (Ka, K and X) and say \"GPS connected\" when the first GPS fix comes in.")
+ info(binding.gpsVoiceSwitch, "With the radar-detector sound: says \"GPS connected\" when the GPS locks, and again when it comes back after losing the fix.")
info(binding.dedupeLabel, "The same device won't alert again until this many minutes have passed.")
withUnit(binding.dedupeInput, "min")
info(binding.shortVoiceSwitch, "\"Body cam\", \"Police car\", \"Speed camera, 50\" instead of whole sentences.")
@@ -2157,6 +2158,7 @@ class SettingsActivity : AppCompatActivity() {
binding.radarBeepSwitch.isChecked = Prefs.radarBeep(this)
binding.detectorSoundSwitch.isChecked = Prefs.detectorSound(this)
binding.startupSweepSwitch.isChecked = Prefs.startupSweep(this)
+ binding.gpsVoiceSwitch.isChecked = Prefs.gpsVoice(this)
binding.scanIntroSwitch.isChecked = Prefs.scanIntro(this)
updateDetectorEffectButton()
binding.detectorEffectButton.isEnabled = binding.detectorSoundSwitch.isChecked
@@ -2490,6 +2492,7 @@ class SettingsActivity : AppCompatActivity() {
Prefs.setRadarBeep(this, binding.radarBeepSwitch.isChecked)
Prefs.setDetectorSound(this, binding.detectorSoundSwitch.isChecked)
Prefs.setStartupSweep(this, binding.startupSweepSwitch.isChecked)
+ Prefs.setGpsVoice(this, binding.gpsVoiceSwitch.isChecked)
Prefs.setScanIntro(this, binding.scanIntroSwitch.isChecked)
Prefs.setVibrateEnabled(this, binding.vibrateSwitch.isChecked)
Prefs.setVoiceEnabled(this, binding.voiceSwitch.isChecked)
diff --git a/app/src/main/java/com/rfsentinel/app/util/AlertPlayer.kt b/app/src/main/java/com/rfsentinel/app/util/AlertPlayer.kt
index 338af6e..829959f 100644
--- a/app/src/main/java/com/rfsentinel/app/util/AlertPlayer.kt
+++ b/app/src/main/java/com/rfsentinel/app/util/AlertPlayer.kt
@@ -187,7 +187,7 @@ object AlertPlayer {
/** Radar-detector sound style: "GPS connected" once the first good fix arrives. */
fun gpsConnected(context: Context) {
- if (Prefs.detectorSound(context)) announce(context, "GPS connected")
+ if (Prefs.detectorSound(context) && Prefs.gpsVoice(context)) announce(context, "GPS connected")
}
/** A spoken navigation instruction (no beep, no vibration); silent when alerts are muted. */
diff --git a/app/src/main/java/com/rfsentinel/app/util/Prefs.kt b/app/src/main/java/com/rfsentinel/app/util/Prefs.kt
index b3b0116..305de3d 100644
--- a/app/src/main/java/com/rfsentinel/app/util/Prefs.kt
+++ b/app/src/main/java/com/rfsentinel/app/util/Prefs.kt
@@ -477,6 +477,10 @@ object Prefs {
fun startupSweep(context: Context): Boolean = bool(context, "startup_sweep", false)
fun setStartupSweep(context: Context, value: Boolean) = setBool(context, "startup_sweep", value)
+ /** Radar-detector sound style: say "GPS connected" when the GPS locks (on by default). */
+ fun gpsVoice(context: Context): Boolean = bool(context, "gps_voice", true)
+ fun setGpsVoice(context: Context, value: Boolean) = setBool(context, "gps_voice", value)
+
/** Play the intro sound when a scan starts. */
fun scanIntro(context: Context): Boolean = bool(context, "scan_intro", false)
fun setScanIntro(context: Context, value: Boolean) = setBool(context, "scan_intro", value)
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index f1067c4..a204e08 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -264,6 +264,13 @@
android:paddingStart="24dp"
android:text="Start beep when a scan starts" />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/gpsVoiceSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingStart="24dp"
+ android:text="Say GPS connected" />
+
<Button
android:id="@+id/detectorEffectButton"
style="@style/Widget.MaterialComponents.Button.TextButton"