You need to monitor the phone's state to see whether it is ringing, in-call or idle. See TelephonyManager and PhoneStateListener.
On Tue, Jan 27, 2009 at 10:33 PM, manoj <[email protected]> wrote: > > Hi friends, > > I have written a small player application. > > I want to handle incoming calls in my application. > > Actually while player plays some media file, if an incoming call > comes, then my player should mute the volume and when the incoming > call is done, the player should unmute the volume. > > Can anyone please tell me how to achieve this requirement? > > Thanks, > Manoj. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

