Questions tagged [fusedlocationproviderapi]

The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.

436 questions
1
vote
2 answers

Android app crashing with FusedLocationProvider

I am trying to make an app that can track the GPS location of my bike. To start off, I've been trying to read the GPS location of my own phone. My app keeps crashing whenever I try to launch the fragment below. I have put in a Google API key for the…
1
vote
0 answers

Location altitude always 0.0 for my service(fusedLocation)

I need to know if there is a way to get the location with fusedLocation Api, actually i am implementing a service this service has a method that returns the location, the location is refreshing each time on the service so i get it on my desired…
1
vote
1 answer

using Location Services fusedlocationapi in Android service -- Receiving only one location update

I'm trying my hand at making a background service that I'd like to run when the app is closed and terminate when the app is open. as you can see in the code below, I have a Toast message that is supposed that is supposed to display in…
TJBlack31
  • 745
  • 4
  • 8
  • 23
1
vote
0 answers

GoogleFusedLocation api returns me null for lat and 0.0 for lon and altitude ever

Sorry for the long title but couldn't resume it more, basicly i implemented the googlefusedlocation api as a service, i need the service to run on background and update the location, this service starts on my app running (atm i am not requesting the…
1
vote
1 answer

Android Fused Location API problems when requesting location for the first time

I have an app that needs to get location to work and everything goes smoothly except when (from what i've gathered researching about this) my app is the first one to request a location and no lat and long have yet been retrieved. How can I get…
1
vote
1 answer

Why android FusedLocationApi broadcasting same location within a period of few milliseconds?

I have an android app in which I have used FusedLocationApi to get location updates of the user. Following is the scenario: 1. I have a singleton Watcher class in which I define the pending intent to get the locations even when app is in background.…
Kanika
  • 714
  • 8
  • 24
1
vote
1 answer

google map in fragment not moving to current location using fused location api

i want to display current location on map, my map is in fragment and i'm using fused location provider in non activity class, but i'm not getting current location when the map is loaded, it is giving me current location only if i press mylocation…
1
vote
1 answer

How getLastLocation API works internally? It returns null even if location setting is ON

I've read some questions about this, but I didn't quite find an answer that I needed. I want to understand how getLastLocation works internally. How last known location cached value is updated? We have requirement where we need to get last known…
1
vote
3 answers

Search Places with FusedLocationApi

Actually I am using the FusedLocationApi for getting the user current location and after that i will add the marker on the Map and it's working fine.. Now i am adding a EditText on the MapFragment and the purpose of editText is if the user enter…
1
vote
0 answers

onLocationChanged is not calling

hey this is my code for retrieving users location periodically @Override protected void onCreate(Bundle savedInstanceState) { buildGoogleApiClient(); } private void prepareLocationServices() { int permissionCheck =…
Amir_P
  • 8,322
  • 5
  • 43
  • 92
1
vote
1 answer

Android gps location not getting updated periodically

I am using fusedlocation api in a Service for updating gps location to server every few seconds.In the MainActivity I have written the code to open locationSettings.Then in onResume method I start the Service(GpsService.java).The Service class send…
jobin
  • 1,489
  • 5
  • 27
  • 52
1
vote
1 answer

Stop location updates if the device has not moved and if it moves a distance of 300m then get it's location

i am making an android application. I want to stop location updates if the device is still and if it moves a distance of 300 or 400m then get it's location again. I don't want to check continuously for location updates and measure distance between…
1
vote
1 answer

Does Fused Location Provider not work without wifi or is it just less accurate?

I read in this document the following [...]"Google introduced its Fused Location Provider (FLP) [42]; however, these techniques depend on Wi-Fi for fine-grained results, which is not always available." source:…
1
vote
1 answer

How to calculate accurate distance travelled by the user using google maps?

I am having two doubts because today only i started doing projects on google maps my first doubt is How to calculate distance traveled by user when using google maps ? like how taxi app is calculating the distance, now let me explain my problem in…
1
vote
0 answers

Android FusedLocationProviderApi difference from gms.location

what is the difference between Android FusedLocationProviderApi and gms.location api? and how this apis use case scenario differs?