tm.listen(l, PhoneStateListener.LISTEN_CALL_STATE); public class MyListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch(state){ case TelephonyManager.CALL_STATE_RINGING: //… case TelephonyManager.CALL_STATE_OFFHOOK: //… case TelephonyManager.CALL_STATE_IDLE: //… } } } http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected
tm.listen(l, PhoneStateListener.LISTEN_CALL_STATE); public class MyListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch(state){ case TelephonyManager.CALL_STATE_RINGING: //… case TelephonyManager.CALL_STATE_OFFHOOK: //… case TelephonyManager.CALL_STATE_IDLE: //… } } } http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected
tm.listen(l, PhoneStateListener.LISTEN_CALL_STATE); public class MyListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch(state){ case TelephonyManager.CALL_STATE_RINGING: //… case TelephonyManager.CALL_STATE_OFFHOOK: //… case TelephonyManager.CALL_STATE_IDLE: //… } } } http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected
tm.listen(l, PhoneStateListener.LISTEN_CALL_STATE); public class MyListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch(state){ case TelephonyManager.CALL_STATE_RINGING: //… case TelephonyManager.CALL_STATE_OFFHOOK: //… case TelephonyManager.CALL_STATE_IDLE: //… } } } http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected
tm.listen(l, PhoneStateListener.LISTEN_CALL_STATE); public class MyListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch(state){ case TelephonyManager.CALL_STATE_RINGING: //… case TelephonyManager.CALL_STATE_OFFHOOK: //… case TelephonyManager.CALL_STATE_IDLE: //… } } } http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected
tm.listen(l, PhoneStateListener.LISTEN_CALL_STATE); public class MyListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch(state){ case TelephonyManager.CALL_STATE_RINGING: //… case TelephonyManager.CALL_STATE_OFFHOOK: //… case TelephonyManager.CALL_STATE_IDLE: //… } } } http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected
a short amount of time • AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE • ≒AUDIOFOCUS_GAIN_TRANSIENT • a short amount of time, during which no other applications, or system components, should play anything. • AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK • ≒AUDIOFOCUS_GAIN_TRANSIENT • other audio applications to keep playing after having lowered their output level