title: Listener for Phone Events and Voice command
body: <p>My app uses a microphone(AudioRecord) in a background mode,How to make the listener for phone events and voice commands (like google voice).  It is necessary for me to release a microphone(AudioRecord) for use.</p>
  
  <p>I found a solution to phone events: <a href="http://www.botskool.com/geeks/how-listen-phone-events-android" rel="nofollow">http://www.botskool.com/geeks/how-listen-phone-events-android</a>.
  to use: TelephonyManager , PhoneStateListener.</p>
  
  <p>But not to voice commands. Help pls. </p>