I Want To Know Regarding How To Stop Calling Method Which I Put In Oncreate Of Service
here friends. after i destroyed service in android still method call which i put in oncreate method in service. here is my code package com.servicelistener; import java.io.IOExcep
Solution 1:
It seems like you need to unregister your location updates listener.
Consider the following
@OverridepublicvoidonDestroy() {
super.onDestroy();
locationManager.removeUpdates(locationListener);
Toast.makeText(this, "Service destroy", Toast.LENGTH_LONG).show();
//mytimer.cancel();
}
Post a Comment for "I Want To Know Regarding How To Stop Calling Method Which I Put In Oncreate Of Service"