I am using android.media.MediaPlayer object to play audio files in my app. Everything works fine but when a phone call comes while a song is playing the app doe
android.media.MediaPlayer
Use a PhoneStateListener to find out when the phone is in use.
PhoneStateListener