Re: [android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-13 Thread Jagruti Sangani
Thanks but if you have call state get code then please send me. On Mon, Feb 13, 2012 at 11:17 AM, Nitin Sethi sethi.5...@gmail.com wrote: I guess it would not work for SIP. You can have a look at the below link. http://developer.android.com/reference/android/net/sip/SipSession.State.html

Re: [android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-12 Thread Jagruti Sangani
Hello, Is it work for sip calling?Because in that i have still not use theTelephonyManager and now i want to get cthe state of calling.So please reply is it work for sip calling. On Sat, Feb 11, 2012 at 11:58 PM, Nitin Sethi sethi.5...@gmail.com wrote: here it is.. full code I have pasted

[android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-12 Thread Nitin Sethi
I guess it would not work for SIP. You can have a look at the below link. http://developer.android.com/reference/android/net/sip/SipSession.State.html On Feb 13, 9:52 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: Hello, Is it work for sip calling?Because in that i have still not use

[android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-11 Thread Nitin Sethi
Hi All, I could finally sort out this issue. It so turns out that the Broadcast Intent i want to receive doesn't linger for long enough for your receiver to consume it and process it. In technical words, the intent is NOT STICKY. Hence, I had to get the state using the method getCallState() to

Re: [android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-11 Thread Jagruti Sangani
Canyou please post the cade about getcallstate() On Sat, Feb 11, 2012 at 6:16 PM, Nitin Sethi sethi.5...@gmail.com wrote: Hi All, I could finally sort out this issue. It so turns out that the Broadcast Intent i want to receive doesn't linger for long enough for your receiver to consume it

[android-developers] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-11 Thread Nitin Sethi
here it is.. full code I have pasted down... Specifically this line I added. ((TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() == TelephonyManager.CALL_STATE_RINGING if (((TelephonyManager) context