I want to get the value of Longitude and Latitude of my current locatoin when offline and save the current location to its database. Is it possible to get the longitude and latitude of the device when mobile data and wifi are off but the GPS is ON?
There may be similar questions regarding this topic,But I need your thoughts and suggestions on some specific requirement.
Here is my need -
We are developing one app which tracks User's trip.
The app will start collecting the location of that user…
I have a Samsung Galaxy Tab A. I have implemented android.location.LocationListener and onLocationChanged(Location location) gets called and it gives me kinda right longitude and latitude but,
The problem is:
location.getTime() gives me wrong time,…
I am developing an application where I want to use Fused Location Provider. But I have some doubts, and couple of questions.
When GPS is off and I set priority to HIGH, does that mean that the GPS will be automatically turned on, or not?
Can I set…
I am using Google Places API for Android - PlaceAutocompleteFragment API in my project to search locations, when user selects a location then get the records using location lat-long and display it to ListView.
Now the problem is whenever user…
I am using android studio and compileSdkVersion is 23
in that i am using below code
if(locationManager != null){
locationManager.removeUpdates(GPSListener.this);
}
to stop gps update where GPS Listener is a class which…
As we know we have two alternates for making our applicaiton location aware
Either we use Google’s Location Services API (part of Google Play services) or we use Androids Location API .
The problem I have here is that using the Google's services ,…
I'm tring to get the location from the gps/netwrok by best provider but always it's return the same location, also i can see that on google map there is a sign to my right location.
please anyone can tell me what i'm doing wrong?
My activity is:
…
I want to get location updates on a "background service" using latest fused location provider client.I don't want to use the location listeners and Google API Client that all are using.
I also need to use location settings Api provided by google…
Geocoder was working fine until today. It started to return String with 0 length.
Note: This is not a duplicate of Geocoder threads, i used intent service and AsyncTask to get it before starting the thread(and AsyncTask approach was working fine…
When starting my app, several POI coordinates shall be added to the Android System. Some hours later, my app is closed and the user walks close to one of the POI he shall get notified e.g. through a status message.
Is this the right approach for my…
Since Android M it is possible to scan for Bluetooth devices in the background even if the global location is turned off if you have enabled the Bluetooth scanning option in location settings (see screenshot).
In order to scan for BLE devices, the…
Am using GPS to get the Users Location, In Samsung Galaxy S5(klte) with Android 5.0 shows error like java.lang.IllegalArgumentException: provider doesn't exist: gps but the device have GPS. Can tell Whats the error Exactly denotes like no GPS or Not…
I am trying to test GeoFences for a location aware application. I have gotten as many as 11 consecutive successes, but that is typically followed by dozens of failures. Rebooting the device does not help. Uninstalling/reinstalling does not help. …
I currently use a CursorAdapter with a Loader. The data loaded by the Loader contains a location. I want to order my items from the nearest to the farthest. I already compute the distance to display it, I now need to find a way to dynamicaly sort…