android-fusedlocation

Location keep changing even if the device is not moving

时光毁灭记忆、已成空白 提交于 2021-02-11 14:29:28
问题 I am getting current Lats and Longs using FusedLocationProviderClient and I am using the below code to get current lats and longs of the device: public class FusedGpsService extends Service { private FusedLocationProviderClient fusedLocationProviderClient; private double speed; Data datas; List<Location> locationList; @Override public void onCreate() { super.onCreate(); fusedLocationProviderClient= LocationServices.getFusedLocationProviderClient(this); requestLocations(); Log.i("STATR",

Location keep changing even if the device is not moving

大城市里の小女人 提交于 2021-02-11 14:28:44
问题 I am getting current Lats and Longs using FusedLocationProviderClient and I am using the below code to get current lats and longs of the device: public class FusedGpsService extends Service { private FusedLocationProviderClient fusedLocationProviderClient; private double speed; Data datas; List<Location> locationList; @Override public void onCreate() { super.onCreate(); fusedLocationProviderClient= LocationServices.getFusedLocationProviderClient(this); requestLocations(); Log.i("STATR",

Android Location “going for a walk” by itself

泄露秘密 提交于 2021-02-07 19:22:24
问题 I am working on the GPS part of a project and I would like to get something past the community. I have searched around for all the typical GPS "jumping and drifting" and I have worked on improving what I get but last week I got some really weird data that I cannot put my finger on. The application basically has a foreground service that tracks the location and then uploads that data on a timer. Of course we have all the proper permissions needed and there is also a filter that weeds out data

What is the best way to receive location updates in background?

做~自己de王妃 提交于 2020-11-29 23:55:48
问题 I am trying to write an app that tracks location in background and sends data to a server -- to monitor where my family members are, for example. Currently I am playing with https://github.com/android/location-samples, particularly with LocationUpdatesBackgroundKotlin that seems to be the best way to receive location updates, but after receiving about 8-10 location updates in background, the gps icon on the status bar dies without anyway notifying the application (here is the android/phone

What is the best way to receive location updates in background?

雨燕双飞 提交于 2020-11-29 23:53:38
问题 I am trying to write an app that tracks location in background and sends data to a server -- to monitor where my family members are, for example. Currently I am playing with https://github.com/android/location-samples, particularly with LocationUpdatesBackgroundKotlin that seems to be the best way to receive location updates, but after receiving about 8-10 location updates in background, the gps icon on the status bar dies without anyway notifying the application (here is the android/phone

What is the best way to receive location updates in background?

萝らか妹 提交于 2020-11-29 23:52:26
问题 I am trying to write an app that tracks location in background and sends data to a server -- to monitor where my family members are, for example. Currently I am playing with https://github.com/android/location-samples, particularly with LocationUpdatesBackgroundKotlin that seems to be the best way to receive location updates, but after receiving about 8-10 location updates in background, the gps icon on the status bar dies without anyway notifying the application (here is the android/phone

FusedLocationProviderClient getLastLocation elapsedRealtimeNanos mostly current system time

ε祈祈猫儿з 提交于 2020-05-14 19:50:14
问题 Update 2 I had a talk with a google engineer on Google I/O '18. He told me that I can trust the fusedLocationProvider. If he marks the last known location with a new timestamp the user is probably still at the same location. I'd like to do a few tests with a "moving" device in the future to prove this statement. Original Question I'm requesting the last known location from the FusedLocationProviderClient with getLastLocation() and want to check if the last known location is older than 5