I want to get a hard location fix every certain minutes & a soft location fix every certain minutes and if user has moved more then certain meters. I been testing the logic with following piece of code walking (tried it with larger parameters as…
It works on most devices except Galaxy Note 2. It connects to Google Client, but can't reach onLocationChanged() that implements LocationListener. Anyone has any idea what it causes and why only on this device?
@Override
public void…
I'm developing an Android application; this App needs to send periodically (every 10 minutes) the current position (coordenates) to a web service. But ... I'm a little confused about the more correct way (and friendlier to the device battery) to do…
I am developing an app which is more of a time-shift racing between your friends.
I need to calculate speed of a moving vehicle, and I don't want to use Location.getSpeed() method. (Explained in detail in the bottom why I don't want to use it)
I am…
I Want get location with Wifi and work in Google map, and it's not work for me but Gps is okay and not problem.
my code:
locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
if (locationManager != null) {
boolean gpsIsEnabled…
Sorry for my english.
I'm trying to get a single location from GPS to put on global variables latitude, longitude.
GPS turns on, but the activity goes on before data is retrieved from GPS.
My needs in other words... method getCurrentLocation() must…
I'm developing location based app using this example: http://www.androidhive.info/2012/07/android-gps-location-manager-tutorial/
But when I turn on phone, the location isn't available right on that moment. So I would like to show progress dialog…
I have an app which needs almost no user interaction, but requires Geofences. Can I run this entirely within a background service?
There will be an Activity when the service is first run. This Activity will start a service and register a…
I want to get current exact location coordinates in android. I am able to get the location if mobile is connected to Wifi internet connection and but in other case when I go some where else and no internet connection available then it not giving the…
I made a little gps app for some reason onLocationChanged not refreshing, it only run once, on app start.
Here is my code:
public BackgroundLocationService() {
super("myintentservice");
locManager = (LocationManager)…
I'm developing an android application which deals with location co-ordinates capturing with gps.
I'm also getting the location details which is last known(via "locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER");
It works…
I have created a service which finds and then stores the user's coordinates in an SQLite database.
public class GPS_Service extends Service {
DatabaseHelper myDb;
private LocationListener locationListener;
private LocationManager…
I am using LocationServices in my application. Before using location services I am trying to verify if Location with required settings is ON but the problem I am facing is that SettingsClient.checkSettings always failing. Please see my…
https://developer.android.com/about/versions/oreo/background-location-limits
In an effort to reduce power consumption, Android 8.0 (API level 26) limits how frequently background apps can retrieve the user's current location. Apps can receive…
I am implementing a module which required user latitude and longitude to punch attendance offline.
I have implemented GPSTracker class followed this example on the LINK
But after enabling GPS location I am punching attendance then this class returns…