Retrieving # of satellites used in gps fix from Android

前端 未结 4 1119
鱼传尺愫
鱼传尺愫 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:27

    locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
    

    Should be

    locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
    

提交回复
热议问题