I would like to know there is a way to get location if only it changes? I know android provides this http://developer.android.com/training/location/receive-location-updates.html to get location updates and as it states:
"If your app does navigation or tracking, you probably want to get the user's location at regular intervals. While you can do this with LocationClient.getLastLocation(), a more direct approach is to request periodic updates from Location Services. In response, Location Services automatically updates your app with the best available location, based on the currently-available location providers such as WiFi and GPS."
How to do it without using regular intervals? The main goal is to minimize power consumption. For example, if i am in a room and sitting, there will be no location change. If i start moving, it should report the location changes.
I do need to get locations if only update, so not constantly.
The method should run on the background continuously and provide the all location updates in a power efficient way.
I found android fused location API here https://developer.android.com/google/play-services/location.html
How about using this?
Can i implement it without using regular intervals?