Questions tagged [fusedlocationproviderclient]

164 questions
0
votes
1 answer

Why requestLocationUpdates fire immediatly onReceive?

When i execute requestLocationUpdates like this : FusedLocationProviderClient fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context); LocationRequest locationRequest = new…
0
votes
0 answers

Fused location provider client returning null in reverse geocoding

I am developing an application in which user get their current location address.The code is seems fine to me but when i am running the app it gets struck in the single Activity and only showing progress circle. The getlastlocation() is returning…
0
votes
0 answers

How to stop FusedLocationProviderClient from returning the same location

I am using FusedLocationProviderClient to get the user current location, everything works fine but the first location that I am getting is shown every time I open the app , no matter where the phone is. This method is giving me the current Latitude…
Tamir Abutbul
  • 7,301
  • 7
  • 25
  • 53
0
votes
1 answer

Location Permission Not Switching on With Device

I have implemented location using FusedLocationProviderClient. The problem in my app is that the permission dialog does not switch on the location in settings. I have to manually turn it on before I start getting updates. I have checked and…
0
votes
1 answer

How to get accurate Location (Latitude & Longitude) using FusedLocationProviderClient

Hi I'm using FusedLocationClient for getting the location from the user .its working I'm able to get latitude and longitude periodically, but sometimes the distance showing wrong like it will go from 10.0 to 200.0 in seconds and then return to 10.0.…
J. Shiv
  • 144
  • 4
0
votes
1 answer

For getting a more accurate location result in Android which one to use FusedLocationApi vs FusedLocationProviderClient?

I was going to develop an android application that deals with users' current location. Then there I noticed two type of examples on the web. One using FusedLocationApi and another one using FusedLocationProviderClient. The first one is very much…
0
votes
1 answer

Timing Location Updates with AlarmManager

I am currently using FusedLocationProviderClient for requesting location updates in MainActivity in onCreate method. After activity gets created, a BroadcastReceiver registered as location updates listener. But location updates still continues at…
0
votes
1 answer

FusedLocationProviderClient taking 5sec for update, I need it per second

I am using FusedLocationProviderClient to get location update in my app. I am creating LocationRequest with interval of 1 sec and maxInterval of 0.5 sec but location update is taking average of 6 sec. I am testing this on Nexus 5, Nexus 5x and Moto…
0
votes
0 answers

FusionLocationProvider not getting location update when application went background

I'm using FusionLocationProviderClient to get the location update periodically in the background. It's working fine. But, Having some issue in Oreo. Location update stops as soon as application goes background. mFusedLocationClient =…
0
votes
2 answers

How to stop properly FusedLocationProviderClient?

I use FusedLocationProviderClient within a Service. I would like to "stop" it in a right way. Is it good to use following code? @Override public void onDestroy() { super.onDestroy(); // Stop Looper of…
NoWar
  • 36,338
  • 80
  • 323
  • 498
-1
votes
1 answer

Unable to update current location FusedLocationClient

I am using fused location provider for fetching current location and update my marker to my current location via that. I am giving app permission and then it does nothing after that. Though i have written code for that to fetch and update location…
-1
votes
1 answer

I am confuse between both of them which one is the best GoogleApiClient or FusedLocationProviderClient

I am confuse between both of them which one is the best GoogleApiClient or FusedLocationProviderClient. Some people use GoogleApiClient and some use FusedLocationProviderClient.I am confuse between both of them which one is the best I am beginer i…
-2
votes
1 answer

Why is my map not initializing after receiving location permission?

The first time a user opens my MapsActivity they are asked for location permission. It should then start my satellite view map with markers at different locations. However, it opens a generic google maps without my markers, but if you then exit the…
-3
votes
2 answers

Android GPS FusedLocationProviderClient : wrong longitude

We have a ReactNative app, running on both iOS and Android. We developed our own native module for GPS updates. On iOS, it's working OK ! On Android, we're using FusedLocationProviderClient. My problem: in some very rare cases on android, less than…
Vinzzz
  • 11,746
  • 5
  • 36
  • 42
1 2 3
10
11