public void onCallStateChanged(int state, String incomingNumber) {
String stateString = "N/A";
System.out.println("State Cheanged KSM"+state);
switch (state) {
case TelephonyManager.CALL_STATE_IDLE:
stateString = "Idle";
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
demoPlay();
stateString = "Off Hook";
break;
case TelephonyManager.CALL_STATE_RINGING:
stateString = "Ringing";
break;
default:
System.out.println("State Cheanged KSM"+state);
break;
}
please help me any other way to listen state of call
thanks
Kgselvam
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en