Hi, I have a service that has a broadcast receiver which listens to
Phone state changes.
When i receive an incoming call, i get an instance of the AudioManager
class and set the speakerphone to true.
But right after this when i do the
mediaRecorder.setAudioSource(MediaRecorder.setAudioSource.MIC), I get
a RunTime exception. Why is this happening? What am I doing wrong.
I have a GUI based version and that works perfect when I do this.
Except that it does not have a service and a Phonestatelistner. Can
someone help me with this? Thanks
David

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to