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
2
votes
2 answers

Android fused location provider stop updating in sleep mode

Im using fused location provider in my background service, to get the result i tried using onLocationChanged and also tried using pending intent's broadcast receiver. When im using "PRIORITY_BALANCE_ACCURACY" everything is okay, and location is…
2
votes
0 answers

Android Fused Location API provides strange results

I'm developing an android app and getting pretty strange results with the new Google Fused Location API. I'm currently inside a building and Google maps and my application show that I'm ~200 meters away from my real location. However, I can see…
2
votes
0 answers

android.os.BadParcelableException: ClassNotFoundException when unmarshalling : FusedLocationProvider API

I am trying to create a background location tracker using Google FusedLocationProvider API. I have used Pending Intent for the same and created an IntentService class. I have also added a notification to notify user about the running location…
2
votes
3 answers

Clear fused location provider's location for testing

I would like to know if it is possible to clear the "location" that is stored by play service's fused location API. When testing my app on a real device, I would like to recreate few scenarios and that's the reason I would like to know if this is…
rakesh kashyap
  • 1,418
  • 22
  • 41
2
votes
1 answer

LocationServices.FusedLocationApi.getLastLocation not working in onCreate() method

Here is my code that uses the same method - once during onCreate() in my MainActivity and once after user clicks a button // Below code not working during onCreate StrictMode.ThreadPolicy policy = new…
zooter
  • 2,128
  • 1
  • 13
  • 23
2
votes
2 answers

How can I use Fused Location Provider inside a Service class?

I need to get the user's location in the background, so I am trying to use Fused Location Provider inside my Service class. I put the code below inside the onStart() method, but the context MainActivity.getAppContext() is not recognized. What can…
2
votes
1 answer

LocationService.FusedLocation returning null only on some devices

I am trying to get the last known location of the user. After Google API is connected, I call my function: @Override public void onConnected(Bundle bundle) { initilizeMap(); } The function looks like this: private void initilizeMap(){ …
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
2
votes
1 answer

Android location update with fusedApi, only if am moving

How to get location update for every 1000 meter,ie update only if am moving ,with fused api integration.
jobi mg
  • 749
  • 6
  • 12
2
votes
1 answer

Fetch offline location using FusedLocationApi

I want to fetch the location using google play services LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); when GPS/Wifi is turned off. Reading the articles/blogs regarding FusedLocationApi, its mentioned that this API will provide…
2
votes
1 answer

Fused Location Provider Stops With No Reason

I'm Using Fused location provider to get frequent location updates based on the users need. Using BroadCast Reciever to recieve the location updates with the LocationRequest Class. Using pending intent I'm initializing the reciever. …
S A R
  • 146
  • 3
  • 20
2
votes
0 answers

Android GPS location with desired Accuracy

I am using Google Play api to get device location and send it to server periodically (every 10 mins or on location change whichever arises first) via IntentService. I am using LocationRequest.PRIORITY_HIGH_ACCURACY while building LocationRequest…
2
votes
1 answer

FusedLocationProvider using intentservice for background location update: location update does not work when pendingintent has a bundle added

I have been looking for an answer for this question for a long time and no one seemed to have an answer. I am trying to subscribe to location updates, using Google's latest FusedLocationProviderAPI. I have followed tutorial online and it works by…
2
votes
1 answer

Android GPS Distance calculator - Real time Jump/Drift filtering

We are building an Android GPS based distance calculator for a rental car giant in India. We are having constant GPS jumps as our drivers wait and wander in closed spaces (malls, etc) when idle. This results in 1-2 Km addition to the overall…
Srivatsan
  • 311
  • 1
  • 4
  • 8
2
votes
1 answer

Get Location When Location changed in Backgroung

Working on a Location App.. I want to Get user location from fusedlocation provider when location is changed in a background service. My service give me location on every interval but i want location when location changed not every interval My…
2
votes
0 answers

GPS not updating location when device locked android

I need to create live path tracking app. I have used FusedLocationProviderApi for getting the current location. My problem is when device is locked some how FusedLocationProvider do not update location. I tried to make device wake using WAKE_LOCK…
maddy d
  • 1,530
  • 2
  • 12
  • 23