Listen to the phone state changes using the PhoneStateListener. You want to act on the following states
* CALL_STATE_IDLE * CALL_STATE_RINGING * CALL_STATE_OFFHOOK and stop your stream in case of an incoming call. When the call state switches back to call state idle, continue with your playback. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 5, 10:44 am, brooke <brooke.ma...@gmail.com> wrote: > Hey everyone, > > I'm sure this is a topic already, but I can't find it. I've got a > streaming audio application that needs to pause when a call comes in > or is made, and resume on completion. I found some logic that does > this in the Music player. > > What I found sets up a PhoneStateListener and listens for changes in > the phone state and adjusts accordingly. > > Do I need to implement this code or is there some new fangled approach > I should use? > > Thanks, > Brooke -- 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