I am looking for a widget which toggles my Nexus 6's option for "OK Google" always listen on/off.

Usually when I am in the car, I need the phone to always listen for "OK Google" and easily turn it on before I get there. After I leave the car, I need to turn it off, because it detects random sounds as the command and never stops listening for noise sounds.

I think such widget does not exists and I do not know if Android exposes API calls for this. I am web developer and I am willing to try to code this widget myself (never tried to code for Android), but I have the will if someone points me to the right direction.


  • you might wanna look into this play.google.com/store/apps/… – Lucky May 19 '15 at 8:04
  • It's cool indeed, but not really what I am looking for. Thanks! – Ivan Dokov May 19 '15 at 8:12
  • in the above link , there you can find the github repo link where you can find the source code of that project where you can start building your app based on that but before that you need to learn and create basic android apps before directly coding the app you want. – Lucky May 19 '15 at 8:15
  • Tasker might be able to do what you're asking. – ND Geek May 19 '15 at 13:08
  • Tasker doesn't seem to have this functionality – Ivan Dokov May 19 '15 at 14:06

It's not the best method but if you happen to use Nova Launcher you can make a widget that gets to the Voice Command Preferences (which is just one click away from accessing the detection settings).

  1. Long-press on the home screen (with Nova installed)
  2. Click Widgets
  3. Place an Activities shortcut somewhere on your homescreen.
  4. Scroll down to the Google App
  5. Choose com.google.android.voicesearch.VoiceSearchPreferences

and you'll at least have a widget that gets you right to the Voice Search Preferences where you can then click on Ok Google detection.

| improve this answer | |
  • Thank you for your suggestion, but I do not want to change the launcher. I want to use a widget which is independent of the launcher. – Ivan Dokov Jul 1 '15 at 19:45

What Nick Ebi described for Nova launcher is also possible without switching to Nova (or Apex launcher, which offers the same). You can use Activity Launcher, an app working independently from the launcher you're using (in fact, it should work with any launcher). Launch that app, and then follow steps 4+5 of Nick's answer, and you will end up with a shortcut on your homescreen. Activity Launcher even allows you to edit that shortcut, giving it a custom name and even assign it an icon of your choice.

Again, not a full solution – but an improvement at least.

For a full solution, follow ND Geek's advice from the comments on your question, and use . While Tasker itself might not have this functionality, there's the AutoVoice plugin offering you an "always listening" mode (called "continuous" there). But that doesn't come for free: both have a trial version, though.

| improve this answer | |
  • com.google.android.voicesearch.VoiceSearchPreferences is opening the first settings screen. Then I have to click "Ok Google detection" and switch the "Always on" setting. I am looking for direct toggle of this setting. So far this is the closest answer to the solution :) – Ivan Dokov Jul 27 '15 at 7:09
  • @IvanDokov, have you checked the second half of my answer? AutoVoice can do that. I've ended up with a widget to toggle "Continuous Mode" on/off. Isn't that what you've asked for? Check out my collection of Tasker resources, which a.o. also holds a section with "AutoVoice Tutorials". – Izzy Jul 27 '15 at 7:19
  • To be honest the first time I tried Tasker I got lost and didn't like it. I will try again today :) – Ivan Dokov Jul 28 '15 at 6:35
  • @IvanDokov To be honest, it took me 3 days to figure how it works when I tried it the first time – but on that 3rd day, though I had 4 days of trial left, I immediately bought the license as it really convinced me. Yeah, it might have a steep learning curve – but it's worth it! – Izzy Jul 28 '15 at 6:50

I don't believe there is a widget, but you can turn it on/off in the google app under the ok google settings.

| improve this answer | |
  • I am aware of this, but I want to use widget for faster usage. – Ivan Dokov May 19 '15 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.