[android-developers] Re: phoneStateListener

2012-09-06 Thread Ashoka UWU
I am looking for the same thing.. :) -- 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] Re: Phonestatelistener dies after a while .... can it be kept alive?

2009-12-19 Thread henca
TelephonyManager tm = (TelephonyManager)getSystemService (TELEPHONY_SERVICE);                 tm.listen(mPhoneListener, PhoneStateListener.LISTEN_NONE); This seems to work for a while but then fails to fire after - say an hour. This sounds very much like a problem I have and wrote about at

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-18 Thread Master_Ne0
Not quite, the original way passed an int not a SignalStrength class, i dont think SignalStrength is part of the SDK yet. They say its been deprecated, i assume this means a soon to come revision of the SDK will have this class in and fixed. You will have to wait for a google developer to confirm

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-17 Thread Master_Ne0
The source code suggests this, @Override public void onSignalStrengthsChanged(SignalStrength signalStrength) { mSignalStrength = signalStrength; updateSignalStrength(); } where SignalStrength is android.telephony.SignalStrength class. Let me know if this

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-17 Thread Ken Adair
Thanks for the reply. The way you mentioned was the way to do it prior to Android 2.0. However, it has since been deprecated, meaning that is no longer the way to access signal strength. From my limited testing this method no longer seems to work when testing with the Droid. On Nov 17, 12:30 pm,

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-16 Thread Ken Adair
I second the SDK confusion. I was able to create a PhoneStateListener and override the onSignalStrengthChanged method. However, the asu is always -1. I am also testing on the Droid. Someone at Google please advise. Regards, Ken -- You received this message because you are subscribed to the

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-16 Thread Ken Adair
I'm assuming it is returning -1 because it is no longer being used with 2.0? -- 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

[android-developers] Re: PhoneStateListener memory leak

2009-09-08 Thread Romain Guy
When you do this kind of test, you should force GCs on the system process with DDMS, then force GCs in your process and then check how many activities you have running. On Tue, Sep 8, 2009 at 10:57 AM, Flying Coderav8r.st...@gmail.com wrote: There appears to be a leak when using

[android-developers] Re: PhoneStateListener memory leak

2009-09-08 Thread Flying Coder
Ugh -- yep, that was the problem. Thanks! :-) On Sep 8, 2:04 pm, Romain Guy romain...@google.com wrote: When you do this kind of test, you should force GCs on the system process with DDMS, then force GCs in your process and then check how many activities you have running. On Tue,

[android-developers] Re: PhoneStateListener state transitions

2009-02-08 Thread songs
Also, adding/receiving other calls while on an existing doesn't seem to send any new events. On Feb 8, 3:21 am, songs coca.c...@gmail.com wrote: Hi, I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is

[android-developers] Re: PhoneStateListener GarbageCollection

2008-12-15 Thread legerb
Having the same problem with the PhoneStateListener. Did you manage to keep it alive? Regarding services, this might help: http://groups.google.com/group/android-developers/browse_frm/thread/fa2848e31636af70?hl=en On Dec 3, 3:21 pm, blau vinb...@gmail.com wrote: I'm trying to figure out the

[android-developers] Re: phoneStateListener

2008-12-11 Thread shimo...@gmail.com
Anyone ? On Nov 3, 12:32 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I think I got this straight. Now an other problem - I want to use the 'onCallStateChanged' function to launch my app screen when a call ends. How do I bring my app to the front ? TIA On Oct 9, 8:22 pm,

[android-developers] Re: PhoneStateListener not called until Phone Activity completes...

2008-11-17 Thread dreamerBoy
I thinks I answered my own question again. The problem appears to be with the Android Service object. I was using an instance of the Service object to do my synchronization. In normal Java, when you call wait() inside of a synchronization block, the thread is supposed to release the monitor so

[android-developers] Re: PhoneStateListener not being called back

2008-11-14 Thread dreamerBoy
Answered my own question... telMgr.listen(myPhoneStateListener, TelephonyManager.CALL_STATE_IDLE | TelephonyManager.CALL_STATE_RINGING | TelephonyManager.CALL_STATE_OFFHOOK); is wrong. This is right: telMgr.list(myPhoneStateListener,

[android-developers] Re: phoneStateListener

2008-11-03 Thread [EMAIL PROTECTED]
Hi, I think I got this straight. Now an other problem - I want to use the 'onCallStateChanged' function to launch my app screen when a call ends. How do I bring my app to the front ? TIA On Oct 9, 8:22 pm, chouman82 [EMAIL PROTECTED] wrote: Can anyone give a simple example of the usage of