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

cannot resolve symbol GoogleApiClient

in my application I was using LocationManager and now I want to use Fused Location Services I'm using Android Studio 1.1.0 and added google play service library in gradle dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile…
0
votes
1 answer

Google Play Fused Location and GPS

I need clarification on Google Play Fused Location. I ask a high priority (LocationRequest.PRIORITY_HIGH_ACCURACY) but on my Android (4.4.4) I set the localization mode to Saving Battery: in this case Google Play don't use anyway the GPS, it's…
shaithana
  • 2,470
  • 1
  • 24
  • 37
-1
votes
2 answers

Miminum play services version required for FusedLocation API

For using FusedLocationApi what is the minimum version of the play services installed on the device? Also as LocationManager does not need play services, is there any minimum requirement for using LocationManager. I want to get the Location of users…
-1
votes
2 answers

how geofencing can be more accurate than checking location at regular intervals?

I don't understand how geofencing can be more accurate than checking location at regular intervals (https://codelabs.developers.google.com/codelabs/background-location-updates-android-o/index.html?index=..%2F..%2Findex#6) ? Because let say I m at…
zeus
  • 12,173
  • 9
  • 63
  • 184
-1
votes
1 answer

Fetch continuous location changes with less battery drainage

I want to fetch the user location continuously and update the same in my database. I am using FusedLocationApi to get the continuous location changes. To get the location the user has to turn on GPS and Internet connection has to be there. Keeping…
hasan_shaikh
  • 1,434
  • 1
  • 15
  • 38
-1
votes
1 answer

I am trying to getting current location using FusedLocationApi

i am trying to getting current location using fused location API. private void setInitialLocation() { if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) !=…
-1
votes
1 answer

Calculate time between onLocationChanged method

I need to calculate time difference between every location change(onLocationChanged). What is a proper way to do that? My code for getting user's location: public class LocationService extends Service implements …
-1
votes
1 answer

Latitude and Longitude get changed every time I fetch them at same position

I am using android fused location api to get the latitude and longitude of same position but every time i get different latitude and longitude of same position last 4 digits vary every time at same position why so and how to get all the possible…
-2
votes
2 answers

Convert Toast.makeText to textView setText

I create apps to get user locations in coordinate like latitude and longitude, so I use play-service-location, my program code is below: import android.location.Location; import android.os.Bundle; import…
-2
votes
2 answers

Blue dot is not shown on MyLocation using android fused location api

I’ve implemented Google map & fuse location API to get current location. But facing issue like unable to get current location (blue dot) after accepting permission at run time . This is happened only in fresh installed app, if i kill the app and…
-2
votes
1 answer

Android Getting Current Location NULL with two different code snippets

I am stuck with location with GPS/Network Providers. I know it is a basic question for all androiders but i am having this problem since long time. Actually I am taking current location and inserting in database by following method on click of…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
-3
votes
1 answer

How to get continuous Location (Lat and Lng) along with location address in same project?

I want to show a continuous update of Lat and long along with location address . I was able to receive continuous lat/lng but wasn't able to find the location address . Basically , want to combine these two…
-6
votes
2 answers

Fused Location always returns null

I am using Fused Location to get current location of my device, but the code that I have implemented always return NULL. I have double checked that my device Location is ON and is set to High Accuracy Mode. Please tell what is problem in my code? My…
Raees Khan
  • 371
  • 1
  • 5
  • 20
1 2 3
21
22