Questions tagged [on-location-changed]
27 questions
0
votes
1 answer
How to add line which shows route you passed on Google Map
I'm quite new in Android and I need a help.
I'm developing an app like Runkeeper, Nike Running Club etc. So I want to know how to add line which shows route you passed on Google Map.Like that.
I have already tried many methods from here, here and…

JAGUAR
- 21
- 8
0
votes
0 answers
OnLocationChanged is not called sometimes using googleapiclient
As I'm using googlemap in my location, every two mins I want to update the location, sometimes onlocationchanged method is not calling in my application.
Please help me to fix my problem.
coding:
public class MyLocationService1 extends Service…

pramila10 radhakrishnan
- 63
- 1
- 7
0
votes
0 answers
android - onLocationChanged never called
I am currently implementing a feature of getting user's current location with Google API.
@Override
public void onLocationChanged(Location location) {
mLastLocation = location;
LatLng latLng = new LatLng(location.getLatitude(),…

Jerry Gor
- 13
- 3
0
votes
1 answer
onLocationChanged not called in Android 6.0 API 23
I'm trying to get the current location using this code and it works when launching the app and when bringing it to the foreground. The toasts show up in both cases, but otherwise they don't. Can anybody tell me where I messed up?
public class…

Shameed
- 33
- 5
0
votes
1 answer
OnLocationChanged issue
I'm working on an app that finds user's position and locates near access points and signal area.
When I'm manually requesting location updates via button it just doesn't calls the callback function.
This is my activity:
public class MainActivity…

Luca Effe Federzoni
- 413
- 5
- 15
0
votes
1 answer
onLocationChanged not being called within the IndoorAtlas location manager
When testing I am able to receive updates from the onStatusChanged within the IALocationListener, but the onLocationChanged is not being called. Any ideas as to why this is?
I have followed the instructions from IndoorAtlas…

cSymons
- 1
0
votes
1 answer
How to collect location updates for later processing outside of onLocationChanged
I want to collect location updates for a specific time duration and do something with the locations at the end. I currently keep track of the time passed in the method onLocationChanged.
public class LocationProvider implements
…

Reti43
- 9,656
- 3
- 28
- 44
0
votes
3 answers
Best way to track Android phone in a moving car
I am creating an app which send GPS coordinates once location is change. I need to send data only when the vehicle is moving. How can I get to know this. I got two options
Using onLocationChanged, getSpeed();
Using the Accelerometer
What is the…

senps
- 584
- 2
- 10
- 30
0
votes
1 answer
My onLocationChanged is not working properly. What should I do?
My onLocationChanged function is only being called for the first time . But even I change my location I am not getting it in the google map and also I am not getting the marker movement depending upon my current location .
package…

Abhishek Das
- 23
- 1
- 6
0
votes
0 answers
Android - Get the location using Network
Ok I'm not having trouble obtaining the coordinate with Network, however my professor asked us putting the location obtaining part of code into its own class (say NetworkLocation.java). Now things get interesting.
My code…
0
votes
1 answer
$locationChangeStart is not working in firefox
$scope.$on("$locationChangeStart", function (event, next, current) {
if (!$rootScope.isPopupOpen) {
if ($rootScope.isUrlLoad) {
window.location.reload();
}
}
$rootScope.isUrlLoad =…

Kalpana K
- 59
- 1
- 10
-1
votes
1 answer
LatLng gives null pointer exception
I am working with google maps on android studio. The problem is when i access DriverLatLngoutside onLocationChanged it gives me null pointer exception.
My onLocationChanged method is as follows :-
@Override
public void onLocationChanged(Location…

Mohammad Maaz
- 137
- 1
- 8