Discussion:
help java android SignalStrength
(too old to reply)
ABCD
2011-04-20 16:22:22 UTC
Permalink
Hello,

No spcecific java android group ?

I would like to do this :

import android.telephony.SignalStrength;

and ....

SignalStrength ss;
int myval = ss.getGsmSignalStrength();

but a message says that ss is not initialized ...

I dont know why and you ?

thanks

Dav
Ian Shef
2011-04-20 19:25:45 UTC
Permalink
Post by ABCD
Hello,
No spcecific java android group ?
import android.telephony.SignalStrength;
and ....
SignalStrength ss;
int myval = ss.getGsmSignalStrength();
but a message says that ss is not initialized ...
I dont know why and you ?
thanks
Dav
android.telephony.SignalStrength is poorly described at
http://developer.android.com/reference/android/telephony/SignalStrength.htm
l

Have you tried

SignalStrength ss = new SignalStrength() ;

?

In the code that you posted, ss is clearly not initialized. The
documentation does not describe how to obtain a SignalStrength object, so
you are going to have to guess or get help from others who have succeeded
with using SignalStrength.

Sorry!

Loading...