All Questions
Tagged with google-maps-android-api-2 location
57
questions
0
votes
0
answers
608
views
Location Request on Android Google Map, setIntervals() and if it costs anything
mLocationRequest = new LocationRequest();
mLocationRequest.setInterval(1000);
mLocationRequest.setFastestInterval(1000);
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)...
0
votes
1
answer
1k
views
How to add the current location to my map activity?
I have an activity with a mapView. Currently i am able to add a fix location by adding the corresponding long and lat into my code.
I would love to get the app to replace those long and lat with my ...
-1
votes
1
answer
574
views
Getting the locations from a MySQL database and displaying them on a map
How can I get locations from a Mysql database and display them on a android app showing a marker on the map?
I have a custom Google map that currently gets the locations from an array or javascript ...
0
votes
0
answers
43
views
Show User Location on Map Failed with API Client Connection Error
I want to show the user's location on a map whenever a toggle button is pressed. I have written the code like below and it works only to show the map but not the user's location and sometimes throws ...
1
vote
0
answers
467
views
MapView which follows current location within a Fragment
I am very new to Android programming and so my code so far is a very brute force way of doing things I think.
I have a Fragment which will be placed in a couple of Activities. The fragment just ...
0
votes
0
answers
171
views
how to check particular latlng is in particular circle radius
i'm working on module in which the person such as driver is in moving state and sending his location regularly on time period, its have waypoints and direction on map, i want to know if the driver has ...
1
vote
1
answer
2k
views
Location is null even if GPS is turned on
I am working on google maps. I want to get the user location and show him on the map. I wrote a Locationlistener to get the user location.
public Location getUserLocation(){
try {
// ...
1
vote
0
answers
288
views
My-location layer and location from Location listener differ
For google maps I have set option setMyLocationEnabled(true) and it draws my location on map, but the location I get from LocationListener is different. The marker I add from onLocationChange(Location ...
1
vote
0
answers
288
views
determine if waypoint has been reached, and if it's missed, move on to the next one with android google maps
I wrote this method to determine a distance to a destination along a path and also to determine a distance to the next waypoint along that path. The problem is, sometimes I don't go within 10 meters ...
-1
votes
1
answer
252
views
Run only once a code in locationlistener
I would like to run a code (get route to nearest location) only once, when location is fixed by the LocationListener, but each time the location gets an update the code runs. If i stop the location ...
0
votes
1
answer
1k
views
How can i use Criteria class to have location? When i try to run the program. It crashes immediately. What is wrong with it?
private GoogleMap mMap;
private LocationManager locationManager;
private LocationListener locationListener;//listten for location changes
String provider;
boolean gpsFix;
@...
0
votes
1
answer
49
views
GPS Location is being saved automatically without approval
Okay my problem is this:
I have two Activities, A and B.
In Activity A I have a webview which presents a google map with coordinates that are taken from a SharedPreferences DB file. if the DB file ...
0
votes
1
answer
497
views
Does Google Maps Android API locate me automatically?
I am working with Google Maps Android API V2.
When my map fragment is loaded it shows my location automatically (with the blue dot). Why does this happen? Is my location history affecting or is the ...
0
votes
0
answers
226
views
Android - Saving location updates (using LocationServices API) from a Service
I have set up an environment where the app receives location updates, which is handle on the onLocationChanged callback.
// Setup the client.
mGoogleApiClient = new GoogleApiClient.Builder(this)
...
0
votes
1
answer
77
views
Android : Get zoomed location without moving and draw a circle around it. (Not working)
I am working on an Android application in which I would like to display the users immediate location, not when the location has changed. Also, I would like to mark the area with a circle as soon as ...