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

Fused location api not working fine incase of motoG it gives latitude and longitude changes but not the getSpees()

I've implemented the fused location api in my code. I can clearly see the changes of latitude and longitude for every required (Priority High accuracy,Interval- 1sec,fastest interval -1s) seconds in my logs. But the getSpeed() is always returning…
1
vote
1 answer

is FusedLocationProviderApi.getLastLocation is HIGH_ACCURACY?

I want to ask if getLastLocation() from FusedLocationProviderApi get Location with HIGH_ACCURACCY or not? when I read the documentation, it says: public abstract Location getLastLocation (GoogleApiClient client) Returns the best most recent…
1
vote
1 answer

FusedLocationProvider API. Transition Between GPS Locations

I have been working on retrieving GPS locations using Google's FusedLocationProvider API for about a week now. I have successfully gotten close to retrieving accurate gps data. Currently the marker jumps around the map, instead I want it to smoothly…
1
vote
2 answers

how to get location updates for every 6 secs using service in android

hi i am doing an app which send user location to server for every 6 secs using fused locationapi inside service.the problem is that i don't know how to schedule it to make it run for every 6 secs.i am newbie to android.so anybody help me.Thank you…
shyamyy
  • 29
  • 3
1
vote
1 answer

App works on phone during debugging, does not work when apk is installed

I have made an app that uses GPS, Internet, FusedAPI and KSOAP. When I debug the app on my mobile using android studio, the app works fine. However when I create apk (signed), the activity that deals with Google Map, Fused API and GPS, does not…
Akshay J
  • 5,362
  • 13
  • 68
  • 105
1
vote
1 answer

Use fusedlocationapi to get location without requesting for location updates after a time interval

I am using google's fusedlocationapi in android for getting user's current latitude and longitude, now according to my use case i only want to get user's current location only when user clicks on a button, now i thought that instead of requesting…
1
vote
1 answer

Fused Location Provider not updating fast enough

A while ago I wrote a Unity program which logged GPS coordinates and it got a new location about 3 times a second while driving. I'm rewritting the app in Android Studio and using the fused location provider API. It is very slow and only getting GPS…
Nathan O'Kane
  • 139
  • 2
  • 9
1
vote
2 answers

Fused Location Provider only working on some phones

Update 1: I figured out that the code does actually work, but it doesn't ask for permission to use your location. If you go to the app permissions and give it location access manually it works. I still don't know how to get it to ask for permissions…
1
vote
2 answers

Not able to stop location updates with fused location APIs

Hi I am developing small android application in which I am trying to get location updates using fused location updates. I tried it in following way: private void processStartLocation() { mGoogleApiClient.connect(); } @Override public void…
nilkash
  • 7,408
  • 32
  • 99
  • 176
1
vote
4 answers

Android: Google Fused Location doesn't work while location is turned off

getLastLocation() returns NULL while phone location is Off on my 6.0 Nexus 7 tablet, but it works without GPS on another device. Why is it so and any way to solve it? I want to keep GPS off and just use network to get location. Below is the class I…
1
vote
1 answer

FusedLocationApi with PendingIntent is fired only once and its null

Am working on an app that needs location update frequently even when its in the background. Following the documentation here, am working with pending intent not locationlistener. My code is below /** * Created by philip on 7/30/16. */ public class…
1
vote
0 answers

FusedLocationProviderAPI always returns null when trying to get current location

For countless hours, I have been trying to get the user's current location upon launching my app, but then every approach I have tried has returned null. My instantiation of the GoogleApiClient takes place in "onCreate" protected void…
1
vote
1 answer

No location is ever retrieved from FusedLocationProviderApi

I have the following simple class, which is my main activity. I essentially followed this verbatim from the Android docs. I am running this from my phone through Android Studio. The problem I am running into is I absolutely never get a legitimate…
zebra
  • 6,373
  • 20
  • 58
  • 67
1
vote
1 answer

Android FusedLocation's SettingsApi does not work more than once

FusedLocation has a wonderful API to check if the user has enabled all the relevant settings to obtain location. I followed the documentation https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi to fire up the…
rakesh kashyap
  • 1,418
  • 22
  • 41
1
vote
1 answer

How Facebook find a solution for location accuracy and battery power?

Hello everyone I have a question an which I did not find answer.Do someone know how some big applications (e.g Facebook) have resolved problems between accuracy of location and battery power? Do they use Fused Location Provider with High-accuracy or…