kechap
kechap

Reputation: 2087

Get number of satellites using fused location

Is there a way to get number of satellites using fused location?

I tried using this

location.getExtras().getInt("satellites")

but it didn't work

Then I tried using GpsStatus but I can't use it cause I am not using the LocationManager.

Upvotes: 2

Views: 1079

Answers (1)

Ka Kei Yeung
Ka Kei Yeung

Reputation: 51

Unfortunately, Fused Location does not have the sattelites information when you Location.getExtras(). You would basically get a NullPointerException.

As you said, GpsStatus is the only way to do it.

Upvotes: 3

Related Questions