[android-developers] PhoneStateListener - what can I expect from onCellInfoChanged?

2014-01-20 Thread Sebouh
The PhoneStateListener's callbacks onCellLocationChanged and onSignalStrengthsChanged were the goto methods for when I wanted to handle cell and signal data changes in GSM and CDMA. With API 17+, I can see that there's a new callback (onCellInfoChanged) for handling both cell and signal

[android-developers] PhoneStateListener is not working in sleep mode

2012-09-16 Thread endru
I'm writing an app, which listens to GSM signal strength. I've created a service, in which I put the PhoneStateListener. The problem is, that PhoneStateListener does not listen to any changes while phone is in sleep mode. I really need to solve that problem, could anyone help me with

[android-developers] PhoneStateListener not getting called on Registration with listen

2012-08-29 Thread Edmund
Hi All, I was wondering if anyone had seen the same behavior or know what's wrong. I am trying to register my PhoneStateListener to listen for ServiceState changes using the TelephonyManager System Service and it is not being called on the initial registration with the 'tm.listen(...,...)' as

[android-developers] PhoneStateListener: Sensitivity to signal strength change

2011-07-11 Thread Yudong
Hi, I am using the PhoneStateListener to collect signal strength information, but I can not find information about its underlying implementation details, which will affect the accuracy of the data collected. My questions are: - is the underlying system service doing sampling/averaging of the

Re: [android-developers] PhoneStateListener in widget

2010-12-30 Thread TreKing
On Tue, Dec 28, 2010 at 3:02 PM, b_t bartata...@gmail.com wrote: But I don't know how to use it in a widget. What limitations does using the widget impose? A cursory look at the doc for PhoneStateListener does not show any requirement of or dependency on an Activity.

Re: [android-developers] PhoneStateListener in widget

2010-12-30 Thread Mark Murphy
No, but an app widget (which is what I'm assuming the OP is referring to) should not be keeping a service around 24x7 solely to watch for phone state changes. On Thu, Dec 30, 2010 at 6:28 PM, TreKing treking...@gmail.com wrote: On Tue, Dec 28, 2010 at 3:02 PM, b_t bartata...@gmail.com wrote:

[android-developers] PhoneStateListener in widget

2010-12-28 Thread b_t
Hi, PhoneStateListener works well in an activity but how can I use it in an appwidget? I would like to display signal strength information, but there is no way to get this value (if I'm right), only with using PhoneStateListener. But I don't know how to use it in a widget. Thank you, T. -- You

[android-developers] PhoneStateListener

2010-05-24 Thread kgselvam
Hi all, How can detect outgoing call pickup state (Answer Sate) Thanks in advance kg -- 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,

[android-developers] PhoneStateListener stops when in sleep

2010-04-13 Thread MarkW
I have a phone state listener running in a service to report current cell information. I log the cell information when signal strength change is detected. This all works as expected when running the application, and when in the background, however when the phone goes into sleep, no logging

[android-developers] Phonestatelistener dies after a while .... can it be kept alive?

2009-12-07 Thread Bluetrail
Hi am developing an app that needs to track incoming calls. I have set up a phonelistener which is launched form a service like so TelephonyManager tm = (TelephonyManager)getSystemService (TELEPHONY_SERVICE); tm.listen(mPhoneListener, PhoneStateListener.LISTEN_NONE); This seems

[android-developers] PhoneStateListener::onSignalStrengthChanged

2009-11-10 Thread Protuhj
I just started developing on my new VZW Droid and while trying to play around with some of the features, I noticed that in the reference docs, they say that onSignalStrengthChanged is deprecated inside PhoneStateListener, (it only gives the asu value, which I assume is GSM only. Now, that's all

[android-developers] PhoneStateListener

2009-11-05 Thread alex
Hello, I've been struggling with this beast and it seems that I can't take control over it. What I want is a PhoneStateListener subclass which listens for a LISTEN_CALL_STATE. First I tried to make one instance on RECEIVE_BOOT_COMPLETED, leave it attached and then when the event comes - the

[android-developers] PhoneStateListener memory leak

2009-09-08 Thread Flying Coder
There appears to be a leak when using PhoneStateListeners. The following code simply reigsters in onResume and unregisters in onPause a PhoneStateListener. Repeatedly launch then press BACK (so the app is finished onDestory is called before the next launch) and the number of activities

[android-developers] PhoneStateListener question

2009-06-07 Thread az9702
Hi, I was testing PhoneStateListener using a simple application that instantiates a TelephonyManager implements PhoneStateListener methods: onCallStateChanged, onServiceStateChanged (just print out corresponding states). I noticed if SERVICE_STATE listener is registered first before

[android-developers] PhoneStateListener state transitions

2009-02-08 Thread songs
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 what happens: (call comes in) RINGING - IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any

[android-developers] PhoneStateListener GarbageCollection

2008-12-03 Thread blau
I'm trying to figure out the best way to have a PhoneStateListener survive as long as possible and be recreated if necessary. TelephonyManager telephonyManager = (TelephonyManager) aContext.getSystemService(Context.TELEPHONY_SERVICE);

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

2008-11-17 Thread dreamerBoy
Hi - I'm having a problem with my PhoneStateListener not being called until after the Phone Activity is finished. Here is what I am doing: step 1: Install a PhoneStateListener. The listener is supposed to call notify() (synchronized on the lock object) when it detects a change in the phone

[android-developers] phoneStateListener

2008-10-09 Thread chouman82
Can anyone give a simple example of the usage of PhoneStateListener? I have tried to overwrite the listener and register it with the TelephonyManager with the Context.TELEPHONY_SERVICE. But i only saw my logging statement printed out right when I started to run the application. The logging

[android-developers] PhoneStateListener - onCallStateChanged

2008-09-26 Thread chouman82
I have a class CallStateListener extends PhoneStateListener then i overwrite onCallStateChanged(int state, String incomingNumber) which i have some logging statements but for some reason when i call the emulator from telnet. the logging statement doesn't show up any idea ? here is my code: