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
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
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
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
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.
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:
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
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,
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
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
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
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
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
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
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
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);
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
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
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:
19 matches
Mail list logo