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