audio - Need to make Android app stop sounds from MediaPlayer when it detects a phone call -


i have android app in user presses buttons , sound plays based on button pressed (uses mediaplayer). when user gets phone call, sound still plays. want able detect when user getting call can stop sounds , resume sounds when user not talking on phone anymore.

any appreciated, thank in advance

i think looking registering broadcast receiver this action.


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -