Retrieving # of satellites used in gps fix from Android

前端 未结 4 1189
鱼传尺愫
鱼传尺愫 2020-12-28 11:04

I am trying to retrieve the # of satellites used in the GPS fix. I have implemented two different methods, as shown below:

package ti.utils;

import android.         


        
4条回答
  •  感情败类
    2020-12-28 11:28

    I got it working by having following in code. locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, new LocationUpdateHandler()); int nSatellites = location.getExtras().getInt("satellites", -1);

    nSatellites was found to be >0 once i started getting fix(onLocationChanged callbacks) .

提交回复
热议问题