Chapter 7: removeUpdates
I have created a button that implements the removeUpdates:
locationManager.removeUpdates(myLocationListener);
However, when I hit the button, I see that the GPS beacon icon is still active. From System.out I get:
CREATING LL: com.blah.blah.myClass$1@434ce7c8
REMOVING LL: com.blah.blah.myClass$1@434ce7c8
To me since these objects match, I would expect the removal. Can anyone point out what I am doing wrong/missing? Again using the same code from chapter 7 titled Updating Your Location in âWhere Am I?â
Thanks in advance.
|