For an Android 2.2 application, written in Java, I'm facing a problem when I try to get information about the GPS satellites. In the OnCreate
function of my main Activity
, I declare an object derived from a Listener
to deal with GPS events.
In the execution of the Listener
, everything is fine except when I try to get satellites information by using the getSatellites
function of a GpsStatus
object retrieved from a LocationManager
: the application stops with an error message.
With the same objects, I can perfectly get the time to first fix.
Can anybody help me?
Thanks in advance for the time you will spend trying to help me.