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

Getting CurrentLocation 0 using fused location when google play service is different in app and device

I am trying to get Current location using Fusedlocationservice. In my gradle file i have put below playservice version compile 'com.google.android.gms:play-services:9.4.0' Now if in device have latest version of google playservice then its…
Vishal Thakkar
  • 2,117
  • 2
  • 16
  • 33
0
votes
2 answers

Geofence with fused location

I am developing an application in which I have to make the geofencing but with Fused location may or may not be GPS signal available. With the available example of geofencing, It shows Geofence service is not available now when gps becomes…
0
votes
1 answer

Android - Xamarin - Fused Location

I am trying to implement a custom activity that initialises the Fused Location services in Xamarin c# so I can reuse this activity whenever the Fused Location is needed. The problem that I am having is that the map is being loaded before the…
Gustavo Baiocchi Costa
  • 1,379
  • 3
  • 16
  • 34
0
votes
1 answer

How do I access my current location in onLocationChanged, in onMapReady method?

I am trying to access my Current Location in onLocationChanged method, in onMapReady method, but currentlatlng is returning null. Any guidance will be helpful. Here is the code: public class MapActivity extends FragmentActivity implements…
AIS
  • 297
  • 1
  • 4
  • 16
0
votes
2 answers

Is there any way to get the location updates even if the gps is off

I am working on an app which involves tracking of android device. I found a google's sample code for getting location updates here which is working really good and easy to implement but the problem is it stops getting location updates when mobile's…
Swapnil Lanjewar
  • 646
  • 10
  • 26
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

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

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

Android getting current location issue

I am facing a issue with getting current location in Android. I am using FusedLocationAPI of android. But the latitude and longitude which I am getting is not accurate. I pasted that credentials on google maps, and it show's me place that is…
Jay Vyas
  • 2,674
  • 5
  • 27
  • 58
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
2 answers

Best way of getting Fast and Accurate Location

In Android I have seen many ways of getting Location. I have read this and this about Location and Also I have came to know about Fused Location Api. My Case in App is that, When User Starts the App it must Fetch the location in a quickest way…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
0
votes
1 answer

Using LocationServices.FusedLocationApi.requestLocationUpdates in an Android background service...onLocationChanged never called

I've searched for days and days and somehow the answer to why onLocationChanged isn't being called has eluded me. I've read the documentation extensively and I MUST be missing something crucial. I simply want a service that runs in the background,…
Kit
  • 531
  • 3
  • 8
0
votes
1 answer

FusedLocationApi.requestLocationUpdates gives Incompatible Types Error

I am using Google Play services to get current location. When I am using requestLocationUpdates method it gives red lines saying; Incompatible types. Required: android.location.Location. Found:com.google.android.gms.common.api.PendingResult…
0
votes
1 answer

How does the fusedLocation API interval relate to turning off the GPS radio

Let's assume I'm used the Android fused location API to request highly accuracy location reporting. For example, mLocationRequest = new LocationRequest(); mLocationRequest.setInterval(FASTEST_UPDATE_INTERVAL*2); …
pbm
  • 5,081
  • 4
  • 18
  • 31
0
votes
1 answer

I am using fused location API to find current location in recycle view adapter, adapter is used by a fragment class

I am making a project there I am using fused location API to find current location in recycle view adapter. Adapter is used by a fragment class,I want to know how I can access my fused location activity class lang and lat in my adapter card view . I…