title: Controling sound from app and incoming calls and SMS
body: <p>I am making a music player where I need to stream some music from URL.</p>
  
  <p>Anyway, I want to control sound from application when I have incoming call or when I recive SMS.</p>
  
  <p>I found that there could be two ways how to do it, with AudioManager and audio focus and with Telephony Manager.</p>
  
  <p>But am not sure which way is better to do it?</p>