0

Is it possible to send voice commands to an application via background service/ notification?

I know it works when the application is in foreground; I need to use a Bluetooth headset and send commands to an application while this runs in the background as a service.

George I.
  • 560
  • 2
  • 7
  • 26

1 Answers1

0

You can write a service and then use createSpeechRecognizer in that service. For a complete service code for this you can find the answer at Android Speech Recognition as a service on Android 4.1 & 4.2

It's a feature like this?

Community
  • 1
  • 1
Smudoo
  • 562
  • 3
  • 11
  • Thanks Smudoo, I'm not sure. I have an ongoing notification which runs in the background and I would need to add the voice recognition to that service. – George I. Aug 13 '15 at 08:40