Questions tagged [android-fusedlocation]

Synonym for Android Fused Location Provider which intelligently manages the underlying location technology and gives you the best location according to your needs.

Fused location provider:

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

  • Simple APIs: Lets you specify high-level needs like "high accuracy" or "low power", instead of having to worry about location providers. Immediately available: Gives your apps immediate access to the best, most recent location.

  • Power-efficiency: Minimizes your app's use of power. Based on all incoming location requests and available sensors, fused location provider chooses the most efficient way to meet those needs.

  • Versatility: Meets a wide range of needs, from foreground uses that need highly accurate location to background uses that need periodic location updates with negligible power impact.

Tutorials:

328 questions
0
votes
1 answer

Location is null Fused location provider android

I am checking if the location services is enabled on the mobile and if yes, listen build googleapiclient and listen to the location changes. The problem that I face is, once the location is turned of in mobile and -reenabled, I cannot get the…
0
votes
1 answer

FusedLocationApi.requestLocationUpdates - onLocationChanged is not getting called

I've been trying to get the current location of the device (not constant update) in my android app throughout the whole day. I was using GoogleApiClient. As the location always returned null - I read that using…
0
votes
1 answer

Xamarin Android preserve method from Linking

I'm using Google Fused Location API in my Xamarin app. It all works fine in Debug mode. However, when I set it in Release Mode, with Linking enabled, it doesn't work on the device. I'm pretty sure that it is because of the linking. How do I preserve…
amitairos
  • 2,907
  • 11
  • 50
  • 84
0
votes
0 answers

'LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient)' not returning any location if GPS is off

I'm trying to get user's current location and for that I'm following this tutorial. I'm running the following code on a device running Android Lollipop so there's no issue of runtime permission here. Here's my code (Update 1.0): @Override …
0
votes
1 answer

Android - Google Maps V2 not working with Fused Location

I have this application where I have to put a pint my map and get the latitude and longitude of the pin i just pressed, but when i want to click the map the application doesnt recognize the tap, anyway, heres my code: public class MapsActivity…
0
votes
1 answer

Initiate periodic location updates using FusedLocationProviderApi or use AlarmManager instead

I'm developing an app that checks the weather based on the current location every 3 hours. I'm getting the location using the FusedLocationProviderApi and using a pendingIntent to a BroadCastReceiver that start up an IntentService. In the…
0
votes
1 answer

Fused location API runtime permissions error

I am trying to get the permission for accessing the location and using the Fusedlocation provider API for android, however, my app crashes on opening. I reviewed the Google developer documentation and made the changes appropriately to the respective…
0
votes
1 answer

Fused Location Provider Api get location from Gps when wifi is off

i have implemented Google Play Service's Fused Location Api in my app to get continuously user Location. Everything works fine when wifi is on but when i turn off wifi then it update user location using cellular info so the accuracy is more then…
0
votes
0 answers

Getting Null values for latitude and longitude using fused location api?

I am trying to get the latitude and longitude from a service and I am getting null values for both latitude and longitude.This is the code that I am trying to implement:- public class MyService extends Service implements LocationListener,…
0
votes
2 answers

How to produce LocationRequest resolution dialog and catch onActivityResult callback in Service

So im using the FusedLocationApi to get the users location. Im also using the LocationRequest object to check if a location source is available and if not, ask the user for permission to turn on GPS(WiFi seems not to work on Lollipop devices). Now…
BiGGZ
  • 503
  • 4
  • 17
0
votes
1 answer

Android fused location api not providing consistent updates with screen off

I have some code that runs multiple times per second in my app. I'm trying to get my location in every cycle. I am using the following: Location myLastPos = LocationServices.FusedLocationApi.getLastLocation(googleApiClient) My app also runs in the…
Shahin
  • 53
  • 6
0
votes
0 answers

Get lat and long on button click in android using fusedLocationApi

I am using google fusedLocationapi for fetching lats and longs. Now i am having a problem here actually i want to get lat and long only at my button click event. That's why i think i don't need to request for location updates which can save my…
0
votes
1 answer

Is google fusedlocationapi free to use?

Can anyone please tell me is fusedlocationapi free to use or alike other google api services it has some free request limits. I have googled this a lot but nowhere it was mentioned, if anybody know about it please tell me i am searching for this…
0
votes
0 answers

Display path using GPS coordinates

I am writing a transmitter app that will periodically send GPS coordinates to a Web Service. This is the code: package online.veda.transafe_tx; import android.content.DialogInterface; import android.content.Intent; import…
Akshay J
  • 5,362
  • 13
  • 68
  • 105
0
votes
1 answer

FusedLocationApi returns null

I am developing and android application which has a broadcast receiver to broadcast incoming sms from a certain number. If the message is from that number and is in a specific format, application replies with the current Longitude and Latitude of…