How can I check the current status of the GPS receiver?

前端 未结 17 1866
时光取名叫无心
时光取名叫无心 2020-11-22 08:53

How can I check the current status of the GPS receiver? I already checked the LocationListener onStatusChanged method but somehow it seems that is not working,

17条回答
  •  无人共我
    2020-11-22 09:44

    Maybe it's the best possiblity to create a TimerTask that sets the received Location to a certain value (null?) regularly. If a new value is received by the GPSListener it will update the location with the current data.

    I think that would be a working solution.

提交回复
热议问题