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
0
votes
3 answers

Wait for GoogleAPIClient to load before trying to connect

I'm building a simple map application using the Google Maps API. When I open the app it will sometimes crash because the GoogleApiClient is not connected yet. I have a few methods that run and need the API to be connected. How do I prevent the…
fez
  • 511
  • 1
  • 10
  • 27
0
votes
3 answers

Why Gradle gives this error?

I am building an app where I am using Location Fused Provider and Firebase cloud messaging. When I were using just Firebase cloud messaging everything was okay, but when I added Fused Locations and wanted to build app, console gives me this error: …
user6450105
0
votes
0 answers

Android Location API weird behavior

I'm trying to fetch accurate location data for our android app and experiencing strange behavior of Location API (both old LocationListener API and new Fused Location API). I'm getting location changes for a certain amount of time (half a minute…
0
votes
1 answer

Fused Location Provider GoogleApiClient sometimes not updating location in background service

Below is my Location service class, it continue update the location if device changed location. public class LocationService extends Service implements LocationListener, GoogleApiClient.ConnectionCallbacks, …
Himanshu
  • 861
  • 10
  • 25
0
votes
1 answer

android clashed between `LocationServices.API` and `Auth.GOOGLE_SIGN_IN_API` when using `FusedLocationApi`

I have code setGoogleSignInAccount like this mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */) .addConnectionCallbacks(this) …
0
votes
0 answers

Mocking locations on Android Marshmallow

I'm attempting to create a simple app to mock GPS coordinates. I have setup the correct permissions in manifest. The problem is actually mocking the address. I have tested the following code with no success: lm =…
0
votes
0 answers

Notification not working in IntentService class

I am creating Background Location Tracker using Google FusedLocation API. In requestLocationUpdates(), I am using PendingIntent for background operation. When I run my app, foreground location tracker works fine. However, my IntentService class…
0
votes
1 answer

Location only updating TextView when app is out of focus

For some reason it only updates the textviews when the app hits onPause, like when I hit the home button, or multitasking button. Can someone help me figure out why that is? MainActivity.java: import android.app.PendingIntent; import…
0
votes
1 answer

Interval of updating location with Fused provider

I am facing with one problem. I am using Fused Location Provider and in docs it writes that when we use high priority, we will get updates on every 5 seconds, but I have watched some tutorial and that guy wrote this function protected void…
user6450105
0
votes
1 answer

Stopping location updates correctly, failure-safe

Please consider this chunk of code: public class Presence implements ConnectionCallbacks, OnConnectionFailedListener, LocationListener { : : boolean pref_auto_mode; : : private Presence(Context…
Narayana J
  • 307
  • 5
  • 17
0
votes
1 answer

Does Fused Location Provider in Android Work in only Data enabled situation?

Will the Fused Location Provider in Android work without data connection. If yes how could able to get location.Tahnk you in advance.
0
votes
1 answer

LocationManager uses FusedLocationProviderApi?

During researching I realized that there are different ways in Android to get the users location. First solution is by LocationManager and the second solution is FusedLocationProviderAPI, which is based on GooglePlay Services. In the internet I just…
Fintasys
  • 1,309
  • 1
  • 9
  • 16
0
votes
1 answer

how to know Gps is off using FusedLocationProviderApi periodicaly

I am working in app where user location tracking all time and updated into server in background service, i update location to the server from onLocationChanged(Location location) @Override method. I want hit server when location is not changed also.…
Suman
  • 1,307
  • 15
  • 32
0
votes
1 answer

android: not able to find the location by using FusedLocationApi even after enabling GPS

I'm trying to find the location of the mobile using GPS and FusedLocationApi location. Even after enabling the GPS i'm not getting the location details. Below is the steps i followed. Kindly Help me Out. Step 1:- Added the line in my gradle …
0
votes
2 answers

Monitoring location and phone activity changes with Google API client

I want to monitor location changes using FusedLocationProviderApi and phone activity changes using ActivityRecognitionApi in the background, even if I close my app. IntentService handles PendingIntents and does some long running operations (around…