onSignalStrengthsChanged bug?

by Ken H » Fri, 02 Apr 2010 00:32:31 GMT

Sponsored Links
 I have an app for measuring a lot of phone stats including signal
strength, and it works fine. I'm using the new
onSignalStrengthsChanged method in Eclair (the old
onSignalStrengthChanged was depracated in v2.0.1) and I've updated my
app to include a service to continue recording that rssi value after
you've exited the app (mostly to save the battery, but also for
monitoring the phone state while making calls, etc.)

Anyway, I've tested the service out on my way to work and notice that
if I let the phone go to sleep (hit the power button and the screen
goes off) the signal strength value does not change -- it continues to
hold the value it had when the phone went to sleep. I know the
PhoneStateListener is working because I'm seeing updates for the
cellID which comes from the onCellLocationChanged method in the

This services works as expected if I keep the phone awake by using
Google Maps or just tapping the screen periodically while at the
desktop -- in other words not letting the phone fall asleep. When I do
that the data collected shows the cellID being updated *and* the
signal strength changing as I drive.

I know not a lot of people do this sort of thing (RF stuff), but has
anybody else seen this? Is this a bug?



onSignalStrengthsChanged bug?

by Ken H » Sat, 03 Apr 2010 00:04:16 GMT

 Just holding out hope someone has had this problem too...



Sponsored Links

Other Threads

1. Video Streaming using RSTP

hi ,

   I am trying to play a video file using rtsp streaming. While
running its giving error as

10-08 17:11:13.719: ERROR/PlayerDriver(542): Command PLAYER_INIT
completed with an error or info PVMFFailure
10-08 17:11:13.729: ERROR/MediaPlayer(746): error (1, -1)
10-08 17:11:13.729: ERROR/MediaPlayer(746): Error (1,-1)

I am using mMediaPlayer.setDataSource("rtsp://

File a.mp4 is working fine with VLC player RTSP Network Streaming.

Also the same code works fine for HTTP streaming.

Can any one suggest what could be the problem.



2. problem creating custom dialog...

I am using example for creating custom dialogs on dev.android.com.
See code below.

The problem is that second line is crashing application (fore close)
######  Context mContext = getApplicationContext();
I can make dialog to work if I replace line with
######  Context mContext = this;

My questions:
1) I have read somewhere that I shouldn't be using "this", that I
should be using getApplicationContext because context can be lost when
changing orientation or so... Should I?  Not really even sure if I
understand what the context is...
2) in another example there is line MyActivity.this.finish();  (it is
located in onclick listener for YES button in AlertDialog)  Android
doesn't know what is MyActivity. What am I doing wrong?


Sorry, absolute beginner.

protected Dialog onCreateDialog(int id) {
    Context mContext = getApplicationContext();
    Dialog dialog = new Dialog(mContext);

    dialog.setTitle("Custom Dialog");

    TextView text = (TextView) dialog.findViewById(R.id.text);
    text.setText("Hello, this is a custom dialog!");
    ImageView image = (ImageView) dialog.findViewById(R.id.image);


3. How to set the width/height of a Spinner ArrayAdapter?

4. How does FW upgrade work without erasing user data?

5. Geocoder.getFromLocationName() ignores bounding box

6. One in a thousand (or is that million?) bug

7. Customizing Android UI behaviour