views:

20

answers:

0

Hello All!

I've been working on a project that requires me to grab the rss signal strength from the phone while it's sleeping via a service that runs when an alarm is received. The problem is that once the phone goes to sleep it always reads the same signal strength until it's woken up again.

I can get around this by forcing the phone awake for a couple seconds, but that's far from optimal.

Does anyone know a way to get the rss signal strength to update without waking the phone up?

Thanks!

private PhoneStateListener psl = new PhoneStateListener() {
    public void onSignalStrengthsChanged(SignalStrength ss) {
           currentRSS = ss.getGsmSignalStrength()*2 - 113;
    }
};