How to determine whether the phone is ringing or making any other sound?
<p>I'm writing a recording application for sound measurements. I need find out if the phone is making any sound (ringing, incoming sms, music playing, ...) and whether the user is dialing. In that case, the measurements are temporally stopped and automatically resumed afterwards. Also vibration may influence the measurements, so I'd like to know that as well.</p>

<p>Any ideas how this can be found out? Thanks</p>
