I have set a button onTouchListener and I would like to replace it with another listener. I believe that I need to use the removeCallbacks call before setting the new listener for the button, but I'm not sure how to use removeCallbacks and I'm not even sure if it's the right method to use. I originally set the listener like this:
mybutton.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
some code here
}});
Please advise.