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
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
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
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
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,
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
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
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
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,
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
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
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,
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
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,
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
15 matches
Mail list logo