posted 9 years ago
Normally, I'd shut up, since I'm not much of an android person. However, as best I recall, the behavior of components in Android mimics that of typical components in "regular Java". If that's the case, then you actually need to a) make the code that includes the cliick handler "implement Xxxx" where Xxxx is the name of the expected listener for the button, and you need to do something like addActionListener(myXxxx) to attach the listener directly to the source of events.
Hope this helps, sorry if it's a total red herring. As I say, I tinkered with Android some years ago, and I vaguely recall it had "the usual structure, Might be embarrassingly wrong though.