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
votes
1 answer

How from my android app get the EXACT latitude/longitude fast as possible?

Often when I request the latitude/longitude I receive an approximate value (around 300m of my actual position) and sometime it's also take a very long time to retrieve the latitude/longitude. but when I open google map my position is always very…
zeus
  • 12,173
  • 9
  • 63
  • 184
-1
votes
1 answer

Location not updated on 10 mins of interval

I want to track the user location. So I have made a code so that on every 10 mins of interval its location should be hit on server. If it is not moving also the location should hit at 10 min of interval. I set Location interval minutes for 10 min …
gopssays
  • 41
  • 7
-1
votes
1 answer

Get GPS location even GPS turn off with XAMARIN

I use XAMARIN to Android. How can I get GPS location even GPS is turn off?
Buflow
  • 25
  • 2
-1
votes
2 answers

Is it possible for my GPS application to continue running in the background while the tablet is on standby?

I have created an application that generates a tracklog of the Android devices location. A GPS coordinate is recorded at regular intervals and stored on the device for later download. Currently, when the phone goes on standby, the program stops…
portsample
  • 1,986
  • 4
  • 19
  • 35
-1
votes
1 answer

How to Edit GPS Location in a Rooted Android 7.1 Phone

I searched many solutions from web, like: using Magisk, using Xposed, FakeGPS, etc. What I have tried is: For FakeGPS, I install it as system app, enable developer mode and choose it as the GPU location provider. Result: no working, other apps…
ghostplant
  • 87
  • 1
  • 7
-1
votes
1 answer

Android Java NullPointerException when trying to see if GPS is enabled

I'm a noob to Android (and not too hot on Java either). I am trying to make sure GPS & internet are enabled before launching the map activity in my app. I'm getting a null pointer exception when calling CheckGPSStatus() in the code below and cannot…
fgadev
  • 21
  • 5
-1
votes
2 answers

Location from Network Provider Android

We are trying to get the location without using Location Manager or Google location protocols. We are trying to get the location directly from Network provider even if the Internet is off. Please help. Thank you.
Anupam
  • 2,845
  • 2
  • 16
  • 30
-1
votes
2 answers

how to start a handler from service after 15 second to prevent app from sleep and send location to webservice?

I am working on GPS tracking Application in which I need to track location after 15 seconds. I have use handler to start service from onStartCommand() from Service class. but After 15 second or after some time after it handler does not execute…
-1
votes
3 answers

How to Fetch a location?

I am using android studio 3.1.4 to learn to develop android apps. I am trying to get gps location. But, it is not working. I have been trying this for whole day. Please, somebody help me through this. My gpsTracker class package…
priosshrsth
  • 1,070
  • 2
  • 11
  • 30
-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

get same latitude, longitude values twice, compare and save to db

I am getting latitude and longitude values from GPS, if i get same location values(latitude and longitude) twice then i need to compare the array-lists values, add those values to db and delete the multiple values from array-lists. In my code first…
Nikhil PV
  • 1,014
  • 2
  • 16
  • 29
-1
votes
2 answers

Calculate average speed from array of Coordinates

//Global var ArrayList points = new ArrayList<>(); //-------------------------------------------------------------------------------------- public void onLocationChanged(final Location location) { //Adds a marker on the…
JamesD
  • 98
  • 7
-1
votes
1 answer

Getting Android not responding while getting location in application on the button click for some devices

code for getting location in GPS tracker Service import android.Manifest; import android.app.Activity; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import…
-1
votes
1 answer

Talking with App between Multiple Devices

I am developing an app which can be used for sharing location between 2 or more devices. One can be a publisher and other can be a subscriber. I got the first part done where I have an app which can read current lat-long from the device. The second…
-1
votes
1 answer

Locationmanager doesn't give me location on some devices e.g HTC Desire 626 or QMobile,

But all other devices are getting correct location, There is a strange behavior that google maps and whatsapp are getting exact location in HTC desire but my app doesn't get location. Please help me, this behavior creates a lot of problems for me.…