Questions tagged [android-gps]
Android's GPS device and related API features.
731
questions
0
votes
1
answer
37
views
GPS-Tracking cant be stopped with LocationManagerAPI
I have written this composable function to track the users position.
@SuppressLint("MissingPermission")
@Composable
fun GpsTracking() {
val ctx = LocalContext.current
val ...
1
vote
2
answers
352
views
NET MAUI how to check if GPS is enabled or force enable
I need the gps to be enabled while using the app.
Can I force the gps to be enabled, or can I check somehow is it enabled.
thnx
0
votes
0
answers
19
views
App does not react anymore after mobile is turned off
I have an app, programmed in Android, which tracks your distance, pace, and some things more.
These things are done via a ForeGroundservice.
Furtheremore, I am showing a polyline to the user via ...
0
votes
0
answers
18
views
Android Widget text update
I have trouble updating my widget text, with the current location each 1000 ms, i only get the default text in the widget, not the location, can anyone give a hint.
The permissions in the manifest is ...
1
vote
0
answers
29
views
FusedLocationProviderClient doesn't work with PRIORITY_BALANCED_POWER_ACCURACY (no satellites), only with PRIORITY_HIGH_ACCURACY
Previously in my app I have been using PRIORITY_HIGH_ACCURACY for FusedLocationProviderClient:
private fun getLocationRequest(): LocationRequest =
LocationRequest.Builder(prefsManager....
0
votes
1
answer
21
views
Location is not returning anything for API below 23 (APIs 21 and 22)
My location service is working very well on APIs >=23 but it show nothing for APIs 21 and 22. This is my location method (Note that I am using fragment):
/*if (!Permissions) { //location permission ...
0
votes
0
answers
19
views
GPS - Best way of calculating distance between many points
I have a problem with my GPS on Android (provider is set to GPS!) and I do not know how to tackle it.
I am working on a running track app.
My current approach is to request location updates minTimesMs ...
0
votes
0
answers
29
views
Gps location keeps bouncing to my neighbors house
So I have noticed this a few times. Suddenly while I am looking in maps or recently I have been doing geolocation stuff, and my location will randomly and precisely transfer from my home to my ...
0
votes
1
answer
41
views
How can i push location data from LocationService to HomeViewModel?
I'm trying to push location data from LocationService to HomeViewModel. I was trying to use Dagger to inject this data, but the value is always null. I don't have any idea how to do it.
My ...
0
votes
0
answers
445
views
Is checking developer mode reliable enough to counter fake GPS?
I'm working on an Android app, which are used by salesperson who visit shops/stores based on agreed plan. Each time the person arrives at the store, he will press a button on the app, which send his ...
0
votes
0
answers
26
views
Asking to find the documentation of the GPS NMEA sentence$GNACCURACY
I am developing an app using the GPS and looking at the sentences receved by may smartphone I see this sentence I did not see before:
17:27:07,$GNACCURACY,2.4,179.9,2.1,20.8*2D
I see one of it every ...
0
votes
1
answer
85
views
Why geolocator package return different decimal position(Latitude,Longtitude)?
My question is about the difference between decimal places when using ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION
what I know is that ACCESS_FINE_LOCATION is more precise than ...
0
votes
0
answers
35
views
What causes FusedLocationProviderClient to error significantly?
We used this code to retrieve our current location:
import com.google.android.gms.common.api.ResolvableApiException;
import com.google.android.gms.location.FusedLocationProviderClient;
import com....
0
votes
0
answers
111
views
Is it possible to connect Android tablets without onboard GPS to a GPSd server for location data?
I have a working GPSd server (Raspberry Pi) with an external GPS receiver providing high quality GPS.
I have tested and can connect to it remotely from other machines across a standard wifi/cabled ...
0
votes
0
answers
209
views
Unable to receive location in background continously with a foreground service in Android
I can get valid location updates for a few minutes(On average 10 mins.) since a foreground service of type location is started. After this period, location received is null value or api callback is ...
0
votes
0
answers
23
views
StartResolutionForResult is called over and over again
I have the problem that when I open my app and I call the permissions dialog using startResolutionForResult() and click no thanks there I get this dialog popping up over and over again until I click ...
0
votes
0
answers
33
views
Through NMEA data, how to get four satellite states: not in use, receiving, searching, and in use?
In GPS, through NMEA data, how to get four satellite states: not in use, receiving, searching, and in use? Is it through the SNR value in GSV?
What is the SNR value in GSV
1
vote
1
answer
102
views
Rotating Emulator Window while replaying Location Routes
ive noticed that the window of my Android Emulator will rotate while im replaying a route from the Emulator Menu.
The window rotation matches the bearing of the GPS signal.
Ive confirmed this is ...
0
votes
0
answers
40
views
How to get location periodically in background?
I'm using Worker for running background tasks and Google service for updating location .But sometimes the "locationCallback" doesn't get any result in desired time.
I have given all the ...
0
votes
0
answers
184
views
Getting location in android sometimes takes too long
I am getting user location in android kotlin app with this code:
val progressBar = findViewById<ProgressBar>(R.id.progressBar2)
progressBar.visibility = View.VISIBLE
var minLat = 0.00
var maxLat ...
0
votes
1
answer
289
views
Android foreground service stops Requesting updates for locations after some days
I have an endless foreground service that request locations updates every 10 sec, in parallel, it sends this locations and others informations to a database.
I managed to update the location while the ...
0
votes
0
answers
172
views
Fetching location updates using Kotlin Flow
I am new to Kotlin Flow. Currently I am using LocationManager to get user Location updates like below:
private var locationManager: LocationManager? = null
locationManager = mContext?.getSystemService(...
0
votes
0
answers
10
views
GPS is receiving latitude and longitude although no connection should be available
my problem is that I receive on my Android mobile phone gps coordinates (lat & lng) although there must not be any connection - in the bathroom behind thick walls even calling someone does not ...
1
vote
0
answers
253
views
Android Location drift - analyze if user is moving or it is a simple GPS drift
So I'm using HIGH_ACCURACY to retrieve location data from my phone using FusedLocation solution. I'm already checking accuracy of this data and speed, but what I want to achieve is to understand if ...
0
votes
0
answers
20
views
Having problems in getting geographic positions (longitude , latitude , altitude,accuracy)
i am implementing an app using GPS functionalities to get positions . The problem is , sometimes it takes a lot of time to get the different positions ,sometimes not .Plus there are sometimes i get 0....
0
votes
0
answers
24
views
Is it possible for android network provider to get GPS information in intranet environment?
We are testing Android LocationManager in intranet environment.
I tried to get GPS coordinate with NETWORK_PROVIDER in intranet environment.
In case of phone connected to intranet, NETWORK_PROVIDER ...
1
vote
0
answers
99
views
Is there a way in Flutter, to detect whether my Application is added to the Power Saving Mode / Ultra Power Saving Mode in Android?
We are developing a GPS live tracking application for a company through Flutter.
We understand that even if added to run as a background service, Chinese Roms, kill the applications when added to the ...
0
votes
1
answer
367
views
Add gps localisation on android app, using Plyer Kivy Python
I have prepared a simple code to look for the available cars close to my localisation. It works with hardcoded values, but I can't get the localisation module from Plyer to work. Now that I added the ...
1
vote
0
answers
104
views
MapBox location.speed is always 0
I have the following problem.
I receive in my LocationChangeListeningCallback latitude and longitude but getting the speed is not possible. It is always 0.
Here is my code (I hope I have not omitted ...
0
votes
1
answer
233
views
Why some android devices receive the data from a 10 Hz Bluetooth GPS modul (NMEA) not every ~100ms but more like 200-300ms?
I'm developing an GPS Bluetooth App (NMEA parsing from a 10 Hz GPS modul) and I have the following problem:
Some devices/Android versions receive the bluetooth NMEA data not like every ~100ms (in a ...
0
votes
0
answers
30
views
android.location.LocationManager doesn't work on my Android device(model MSM8916)
I am creating an Android app for a specific Android device. Its model is MSM8916.
locationManager = (LocationManager) mContext
.getSystemService(LOCATION_SERVICE);
...
0
votes
0
answers
27
views
How to stop Retrofit from caching old parameter values?
On some APIs on the app I'm working on, the user location is sent as one of the parameters, so their locations can be monitored via web dashboard, like this:
@FormUrlEncoded
@POST("v1/visit")...
0
votes
1
answer
413
views
ESP32 Connected to GPS module. No serial out unless holding down reset button
I'm new to Arduino and I'm having some trouble. I have a 16E TTL GPS module connected to the RX and TX pins on my NodeMCU ESP32 board and have a simple Arduino sketch i wrote to output the data to the ...
0
votes
0
answers
73
views
Android Java Geocoder address line not same with coordinates latitude and longitude
I am using Geocoder to get the address line and city of the location based coordinates get. I successfully extracted the coordinates latitude and longitude and when displayed on a map, it is accurate, ...
-1
votes
2
answers
101
views
Ionic : GPS is not detect sometimes
I have one issue on my app. I have used GPS for getting lat and lon some times when clicking function GPS not detected app. So it's need to restart application. After restarting application GPS ...
2
votes
0
answers
78
views
NETWORK_PROVIDER and GPS_PROVIDER both returning NULL on some GoEdition devices after Nov23 2022
This might help someone one day.
Background
Around Nov23rd2022 our team started receiving complaints from users, about our app that does attendance by ensuring that users can only work in designated ...
0
votes
1
answer
549
views
Android Google Maps Offline - my location is not shown
I am trying to use Google Maps for Android, offline (always and forever).
Surprisingly, I can't find any question here that asks or solves this issue specifically.
When I use a new offline phone, both ...
2
votes
0
answers
51
views
An Idea for an app but I don't know if kivy capable of that
I have some problem and I'll list them here:
Emulator for iPhone and Android, how can I build an app for iPhone/Android using kivy but I have not emulators open source to see how my app works and ...
0
votes
0
answers
36
views
What is the ip or url used by android GPS sensor to detect location?
I'm creating android application on custom handheld device and I'm using vpn service secure connection to our servers, I have a problem that vpn server blocks all urls except one I specify and thus ...
0
votes
1
answer
160
views
get location coordinates without GPS
My question is can you get location coordinates latitude and longitude using WIFI or any other source when location is off or disabled. Basically I want to get current location when the GPS is not ...
0
votes
1
answer
198
views
DJI-SDK retrieve x,y Coordinates accurately. GPS is too inaccurate
I am trying to create an application with AR that will display objects hovering right on top of the drone to help the user flying experience (e.g. show an arrow or gimbals on your AR-goggles that ...
0
votes
1
answer
36
views
Need to get updated location/data from onLocationChanged
Just a warning: I'm really not proud of this code that I've written, but I just need it to work anyhow. Don't judge me too harshly.
Hey everyone, I'm programming a speedometer android app, and I'm ...
0
votes
1
answer
347
views
How to solve problem with gps permissions on Android versions 12?
GPS service is not enabled on Android versions 12 and above.
Everything worked correctly on earlier versions
I have read this documentation,
but I'm not sure if I have a problem with android:...
0
votes
2
answers
665
views
Flutter send location when screen is locked
I'm developing a GPS tracking app by using location.
I've wrapped the intervals function to send latitude and longitude in API. It works on an emulator when the screen is locked and stay on home ...
1
vote
0
answers
82
views
Speed of a vehicle using GPS provider in android latest version not working
How to get the speed of a vehicle using your phone when we seated in the vehicle using GPS in Android latest version. I have used the GPS_PROVIDER location.getSpeed() and its not working. I have used ...
1
vote
1
answer
111
views
How to track movements in a room with Android Studio?
The need is to track the user moving in small areas (for example at home, in a garden, in a museum, or in some rooms) with Android Studio (Java) drawing the path he does on the screen.
I can use ...
1
vote
2
answers
1k
views
How can i find City name from Longitude and Latitude Kotlin
In kotlin how do I get the city name of the current location from which I get the latitude and longitude values?
0
votes
0
answers
230
views
Android GPS is not updating location at high altitude inside aircraft
I am building an application for Android devices for skydivers to log location data during a skydive.
I have set the app up to record the device GPS location every 5 seconds in a foreground service. ...
0
votes
1
answer
48
views
Send request to an other android device in a app
I am currently trying to make a personal location application between 2 devices on Android.
The concept is simple: I install my application on my phone as well as on that of my wife and each can ...
0
votes
2
answers
479
views
How to bypass isFromMockProvider() in Smali
I tried to edit source code of an app which is used to locate servants
It has a function or parameter "isFromMockProvider()"
I guess this one is the culprit
I want to bypass it
So that App ...