Questions tagged [android-gps]

Android's GPS device and related API features.

Android provides a Location and Sensors API for programmatical access to its GPS device.

733 questions
1
vote
1 answer

Rtklib: use rtklib in an android which supports raw measurements to get accurate positions

I am working on a project where I obtain raw gps measurements in a supported Android phone and use rtklib's Android port that is rtk-gps to correct this data with correction from a dgps base station. So my question is - is this achievable using…
user3185008
  • 121
  • 6
1
vote
0 answers

Unity Library: Android GPS Access Issue

I am having issues with the unity library when it comes to accessing GPS Data from my phone. I have debugged it and it goes to LocationServiceStatus.stopped. But I get 0's for coordinates so I don't know why I am getting 0's and what would be…
1
vote
2 answers

isFromMockProvider() is returning true even if I am turning off fake/mock location

I am getting location, to check that is it Mock or not I am doing it as: if(location.isFromMockProvider()){ return true; } If there is no fake gps app, it will return false. I am testing it by downloading fake gps apps and adding them to…
1
vote
0 answers

How to get current location on chinese phone?

I use Goole play service location APIs and fusedLocationClient.requestLocationUpdates(locationRequest,locationCallback,looper); to get current location. But sometimes it get a last location on Chinese phone like oppo、Xiaomi.(It has google plays on…
1
vote
1 answer

Obtain CPU clock speed programmatically on Android Device?

Does anyone have a code snippet giving the CPU clock speed on an Android device? Reason I have written an Wear OS App using the watch GPS to calculate Speed and Bearing to a (pre-entered) GPS location. The problem I am experiencing is after some…
RatherBeSailing
  • 261
  • 1
  • 11
1
vote
1 answer

Location coming up as null in Android

I have this method that I am calling in the onCreate() and onResume() methods in my MainActivity. Basically, I'm using it so I can get the city name of my current location and set it to a string so I can use it later. And to see if it worked I just…
1
vote
1 answer

Location service is being killed when not in foreground

I am developing an app for taxi drivers, that report vehicle's position to dispatching webapp. I have managed to reliably get device location using FusedLocationProviderClient and position updates, that are being sent through Foreground service.…
1
vote
1 answer

What should be the network infrastructure for this mobile application?

We're creating an android application that can send the user's current location to another version of app used by the responders and authorities which can then display the user's location on a map interface with a marker that has the user's…
Rafael Campos
  • 49
  • 1
  • 5
1
vote
1 answer

OnNmeaMessageListener not working for samsung j7, android 6.0.1

When testing an app that uses the OnNmeaMessageListener on a Samsung J7 the app breaks with this error And I really don't get what is the problem, I've tested on other devices and the app works. Code that I'm testing: LM.addNmeaListener(new…
Diego
  • 493
  • 1
  • 9
  • 26
1
vote
1 answer

GPS status in android studio - API level 29

I'm writing an android app with android studio in java targetting API 29 devices. I've written a GPSReceiver (which extends BroadcastReceiver) and I need to know if GPS status has changed (i.e. add a location listener). In earlier versions of…
1
vote
0 answers

Why does my Location not display within my Emulator?

I followed the steps on how to setup my Location within an Emulator to display the GPS location of anywhere on https://developers.google.com/maps/documentation/android-sdk/start When I go to add a location within my Emulator and when Google Maps…
1
vote
1 answer

How to get the number of satellites using GNSS Status in Kotlin?

private lateinit mGnssStatus: GnssStatus private lateinit mGnssStatusCallback: GnssStatus.Callback private lateinit mGnssStatusBuild: GnssStatus.Builder //Gnss initialization to display the number of the satellite val mgnssStatus=// how can I…
1
vote
0 answers

What is recommended interval for location updates to get real-time vehicle speed?

Right now I have such settings for location updates: private const val LOCATION_MIN_TIME_INTERVAL = 200L private val locationRequest = LocationRequest().apply { interval = LOCATION_MIN_TIME_INTERVAL fastestInterval =…
user924
  • 8,146
  • 7
  • 57
  • 139
1
vote
0 answers

Can a user able to see the extra achievements as well when the app goes live on the Google Play store?

I have created some achievements for my app and published them on GPGS, but now I don't want them and created some more achievements and drafted the previously created achievements. So, the current status for old achievements (example 6…
1
vote
1 answer

Meaning of Criteria.POWER_LOW for LocationManager

The Criteria class is not documented in much detail. Can someone please explain what POWER_HIGH and POWER_LOW change exactly? Is it about battery drainage? criteria.setPowerRequirement(Criteria.POWER_LOW); …
einUsername
  • 1,569
  • 2
  • 15
  • 26