android - MyLocationListener implements LocationListener - removeUpdates doesnt work -
i want put locationlistener in seperate class this:
public class mylocationlistener implements locationlistener{ @override public void onlocationchanged(location location) { } @override public void onproviderdisabled(string provider) { // todo auto-generated method stub } @override public void onproviderenabled(string provider) { // todo auto-generated method stub } @override public void onstatuschanged(string provider, int status, bundle extras) { // todo auto-generated method stub }}
it works, when trigger:
locationmanager.removeupdates(mlistener);
with mlistener mylocationlistener object, doesnt remove registered updates. onlocationchanged gets called on , on , on......
any help?
Comments
Post a Comment