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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -