Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
94 views

I have one issue in foreground service and I am unable to replicate that issue, so if any one found similar issue can you please help me to solve this issue. Below is the issue reported in Firebase ...
Zala Satyarajsinh's user avatar
0 votes
1 answer
47 views

|-|i To make my app able to let the user enable location, I use exception.startResolutionForResult But my app displays "For a better experience, your device will need..." Although I see ...
user avatar
1 vote
0 answers
93 views

I am trying to integrate com.google.android.gms.location library into my project which is heavily focused on Clean Architecure. I understand how things come together in the data layer and how I can ...
No_Name's user avatar
  • 333
1 vote
0 answers
92 views

So depending on which API we use (FusedLocationProvider or LocationManager), battery mode (Device Power Saving or Battery Unrestricted for an app), Android version, the app may not receive GPS updates ...
user924's user avatar
  • 13k
0 votes
3 answers
4k views

I have a service worker that runs every 10 minutes and needs to get the current latitude and longitude every time it runs and I've been using the following code: private var fusedLocationClient: ...
Peter Chikov's user avatar
1 vote
2 answers
69 views

I've developed an Android application that calls the getLastLocation() function to record coordinates every minute. However, I've observed a discrepancy between the coordinates logged by Android ...
iForests's user avatar
  • 6,989
1 vote
2 answers
1k views

I am trying to understand how to use Location services in an Android App developed using Jetpack Compose. Following some tutorials I came across; I have written the following code component to ...
ubndra's user avatar
  • 29
0 votes
1 answer
71 views

How can I implement on request location updates so that instead of getting the users last location I can constantly get their current location. Code is: https://pastebin.com/8vLb0NF6 this is what I ...
Benjamn's user avatar
  • 11
1 vote
1 answer
93 views

Could you please help me? I have a task to make a GPS tracker that would pass GPS data to Firebase. But the key point is that the tracker should have the following sensitivity - 60 meters (10 for test ...
Alex20280's user avatar
  • 385
0 votes
0 answers
381 views

Great People out there! I am writing the code for the location tracking I have written both foreground service and a coroutine worker for the background location update. But the problem is when I use ...
AnumShafiq's user avatar
0 votes
2 answers
76 views

My android project needs the users last / current location upon launching but I am not getting a valid location for some reason. My Main activity checks for the permissions like this: override fun ...
user19334054's user avatar
0 votes
1 answer
53 views

I'm working on an app that is used by salespersons visiting stores on a few different cities. While visiting the stores, every salesperson have to log his/her coordinates. Here's my code: public class ...
anta40's user avatar
  • 6,825
1 vote
0 answers
18 views

I have my fusedlocationprovider that works perfectly, for the distance and for the time when the person is not moving. function with my FusedLocationProvider: private void startLocationUpdates() { ...
ΩlostA's user avatar
  • 2,621
1 vote
0 answers
126 views

Previously in my app I have been using PRIORITY_HIGH_ACCURACY for FusedLocationProviderClient: private fun getLocationRequest(): LocationRequest = LocationRequest.Builder(prefsManager....
user924's user avatar
  • 13k
0 votes
1 answer
60 views

I don't understand, the Interval in milliseconds works well, but the minimum distance doesn't work. How to get the onLocationResult be triggered all the 30m of displacement in a LocationRequest with ...
ΩlostA's user avatar
  • 2,621
0 votes
0 answers
285 views

I am implementing a location android app , using fused location provider client .It has been working few days ago but actually it craches because it is returning as value null and here is what i got ...
Patrick Renaud's user avatar
4 votes
1 answer
1k views

I'm currently working on a location feature to track device location using FusedLocationProviderClient. When App is visible the tracking is working as intented on all Android versions. But when ...
Guimareshh's user avatar
  • 1,244
0 votes
1 answer
614 views

Process crashed while executing mainTest(ru.myitschool.lab23.InstrumentedTestGeo): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content....
Foogles super's user avatar
0 votes
0 answers
229 views

I'm trying to get a good position via android and GNSS. The locationManager of Android in every case returns only one update per second. So I decided to switch to the GoogleFusedApi and the ...
Nicooost's user avatar
0 votes
0 answers
94 views

I am getting device' locations through fused location service, then sending these location to backend to draw line on map. It is working fine. As we know, fused location is a free service and it has ...
Faizan Ahmad's user avatar
2 votes
3 answers
1k views

I have compileSdkVersion 32 and now I can create LocationRequest only using LocationRequest.Builder. LocationRequest.create() currently unavailable, means I can't even call this deprecated static ...
Konstantin Konopko's user avatar
1 vote
1 answer
918 views

I have an activity that is receiving the user location every X seconds. When the user location is within the radius of 15 meters from a specific point, I want the Location Provider to stop updating ...
jpsf's user avatar
  • 15
4 votes
1 answer
724 views

We develop an application which is used for outdoor activities (hiking, bicycle, mountain bike, ...) and one of the main features of the application is to record the track of the user thanks to the ...
geolives's user avatar
  • 229
2 votes
0 answers
162 views

I have tested my app in Moto G3(Android 6), Vivo y19(Android 12), Poco M2 pro(Android 11), oppo A15(Android 10), Nokia 2.1(Android 8) everything works fine. But when it comes to POCO X3(Android 12, ...
coderror's user avatar
5 votes
0 answers
327 views

I am using the Fused Location Provider API to both get current location and to request regular location updates. As far as I can tell, my permissions are configured correctly (both fine and coarse are ...
PearlyCouscous's user avatar
2 votes
3 answers
9k views

Intention: I am trying to get user's current location after user grants (coarse/fine)location permission. I am using jetpack compose accompanist lib to manager permission. So when user grants the ...
Ankush's user avatar
  • 185
0 votes
0 answers
397 views

I'm building an app where I need very good accuracy. The app is calculating trip in the car for the companies I work with. I came to the point where it counts just like a odometer in a car, but my ...
Michal's user avatar
  • 13
1 vote
0 answers
215 views

Below is the code used for getting the location private fun requestLocation() { Utils.print("LocationUpdateService","request location per minute") if (...
Dalvendra Singh's user avatar
0 votes
1 answer
626 views

I am working currently on weather app from a tutorial. The app works fine until the moment when I try to refresh everything and request once again a location and call API using the new location. ...
Micro1225's user avatar
2 votes
0 answers
16k views

I am working on an app in which I have to trace the location of drivers. I used fusedlocation and GPS location methods for this purpose. It is working fine. But some drivers/users have installed Fake ...
Faizan Ahmad's user avatar
1 vote
0 answers
637 views

I cannot seem to create an infinite loop that runs periodically for a background service and is reliable. The app uses a Service to post a GPS location every 5 seconds using a FusedLocationClient ...
Eli Sternbach's user avatar
1 vote
0 answers
82 views

I am using Fused Location Provider Client and Location Request on an android app to send the phone's location every 5 seconds. However, I stop getting location updates when the device is asleep. I ...
pilotman's user avatar
2 votes
0 answers
915 views

I need my Wear OS sailing App to provide GPS updates when no phone is connected. Unfortunately despite specifying the App as standalone the GPS updates stop as soon as the Bluetooth link to the phone ...
RatherBeSailing's user avatar
7 votes
2 answers
1k views

I have an app which has been live for a couple of years now, but lately, I've been getting reports about the location system not functioning properly. I have tracked the issue down to the ...
Christian's user avatar
  • 1,174
1 vote
1 answer
1k views

Android 12 SDK seems to be stable now if compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { minSdkVersion 23 targetSdkVersion 30 then Play Services Location works fine ...
user924's user avatar
  • 13k
1 vote
0 answers
375 views

Our Android app starts a foreground service that is guaranteed to be foregrounded by the user before use. However, we now need to get user location even when the user has backgrounded the app or ...
yhtrjdtryh's user avatar
0 votes
0 answers
169 views

I have this code for request location updates: private var fusedLocationClient = LocationServices.getFusedLocationProviderClient(context) locationRequest = LocationRequest.create().apply { ...
Vladimir Fisher's user avatar
2 votes
2 answers
7k views

I am using location to implement geofencing functionality (limiting app usage to one country) In first activity in application I am using FusedLocationProviderClient to get location like this: Init ...
Dejan's user avatar
  • 3,084
1 vote
0 answers
79 views

I need the location once in my foreground activity. But I get a null response. Weirdly once I open google maps the location callback returns a valid object. What is google maps doing that I'm not? How ...
ir2pid's user avatar
  • 6,266
1 vote
1 answer
992 views

I'm using FusedLocationClient and broadcast receiver to get location in background, i enabled background location background permission and locations (FINE and COARSE) permission. i receive location ...
Ahmed Nezhi's user avatar
0 votes
2 answers
652 views

I am using fused location api to find the current location in the fragment, sometimes getting a memory leak How to fix this issue? com.android.zigmaster.ui.home.FragmentSearch instance ​ ...
Bolt UIX's user avatar
  • 7,182
0 votes
0 answers
557 views

I am making an app that allows users to search for nearby users of my app, so I need to update users' location periodically, and this process should be triggered even when the app is closed. I have ...
Samer Alkhatib's user avatar
0 votes
1 answer
135 views

An user of my app reports the next I found out that when I put my phone on charger (via fm transmitter USB port) then the problem exist. If I run the phone from battery, then the GPS in the app works ...
user924's user avatar
  • 13k
0 votes
1 answer
143 views

I have this use-case of sending the user's location when I hit a certain API. As this API call is frequent, I want to avoid the battery consumption of the app. I am okay with using the ...
Ritt's user avatar
  • 3,369
0 votes
1 answer
1k views

For location updated I have used Fused Location API, but it seems that some Android phones are killing the foreground service after a while. How I can run foreground services and be sure that they won'...
Pesa's user avatar
  • 341
8 votes
2 answers
5k views

I have issues with my app recently, when it is out of nowhere rejected by Google Play because they found that I'm using background location. But in fact I'm not using this feature. I have only ...
Martin's user avatar
  • 2,984
2 votes
1 answer
1k views

Right now I have such settings for location updates: private const val LOCATION_MIN_TIME_INTERVAL = 200L private val locationRequest = LocationRequest().apply { interval = ...
user924's user avatar
  • 13k
0 votes
1 answer
137 views

Google recommends using FusedLocationProviderClient instead of LocationManager Using LocationManager I could subscribe to change status events of providers by using LocationListener interface: void ...
user924's user avatar
  • 13k
1 vote
1 answer
2k views

In the docs for FusedLocationProviderClient.getCurrentLocation() it says as follows: This method may return locations that are a few seconds old, but never returns much older locations. This is ...
drmrbrewer's user avatar
  • 13.4k
1 vote
1 answer
887 views

Recently I've been trying to implement the logic in order to get Location Updates from a FusedLocationProviderClient using Work Manager, every 15 mins (as that's the minimum background execution delay)...
Stefan's user avatar
  • 4,661

1
2 3 4 5
7