Re: [android-developers] Re: How to get outgoing call status

2012-02-15 Thread Jagruti Sangani
Hello,
But this is not work for sip calling.It is use if we had use the internal
dialer for calling .

On Wed, Feb 15, 2012 at 1:10 PM, vijay kher khervija...@gmail.com wrote:

 Try this

  TelephonyManager telephonyManager
 =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

   telephonyManager.listen(new MyPhonestateListener(),
 PhoneStateListener.LISTEN_CALL_STATE);

 private class MyPhonestateListener extends PhoneStateListener
 {

 @Override
 public void onCallStateChanged(int state, String incomingNumber)
 {
 super.onCallStateChanged(state, incomingNumber);

 switch (state)
 {
 case TelephonyManager.CALL_STATE_IDLE:

 break;

 case TelephonyManager.CALL_STATE_OFFHOOK:

 break;

 case TelephonyManager.CALL_STATE_RINGING:

 break;
 default:
 break;
 }


 }

 may you get some help

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to get outgoing call status

2012-02-15 Thread Mark Murphy
On Wed, Feb 15, 2012 at 7:15 AM, Jagruti Sangani
jagruti.sang...@inextrix.com wrote:
 But this is not work for sip calling.It is use if we had use the internal
 dialer for calling .

There is no way to determine if a VOIP client is being used, since any
application could be a VOIP client (e.g., Skype, Vonage).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en