3

Is it possible to be constantly monitoring the microphone from a background application (service?) on an Android phone?

Some idea of what I want to do:

  • Listen constantly for an audible signal in the background.
  • Upon receipt of 'interesting' audio signal, perform some network operation.

The background application must be able to intelligently relinquish access to the microphone should a foreground application require it (unless it can be shared?) - e.g. to make a call.

Is this possible?

Visruth
  • 3,430
  • 35
  • 48
Avram
  • 251
  • 3
  • 12

1 Answers1

0

Recording audio is possible check out these links:

Record audio

Record audio

Got them from this post How to use the microphone on Android .

So I'm thinking it should be possible to record inside an background service. Don't got the time atm to verify it.

Community
  • 1
  • 1
flitjes
  • 115
  • 1
  • 9
  • 1
    Just to clarify, I don't want to record the audio. I will just need to stream and buffer the audio (probably a few seconds worth) to search for an encoded audio signal. - And the service must be able to relinquish any exclusive locks on microphone access should a foreground application require it. – Avram May 07 '12 at 07:42
  • @Avram i want the same thing you want , what did you end up with , is there a way to do that ? please help – user4o01 Sep 23 '12 at 17:22
  • @Avram any progress you had on this front ?? or ny other leads you can provide.. ? – Kamal Mar 01 '13 at 19:59
  • Sorry, nothing to add. I didn't end up implementing this and am no longer working on it. – Avram Mar 04 '13 at 11:53