Capturing setOnClickListener() and setOnFocusChangeListener()
<p>I'm writing an API for Android and I need to know when the developer using the API calls <code>View.setOnClickListener()</code> and <code>View.setOnFocusChangeListener()</code>. I don't want to override either because that would mean to extend <code>View</code> and I don't want to force the developer to use my subclass -basically because he wouldn't be able to use the Android GUI editor for Eclipse-.</p>

<p>I tried to override <code>Activity.dispatchTouchEvent()</code> but then I cannot capture movements done with keypad/virtual keyboard.</p>

<p>Any ideas or guidelines on how to do this?</p>
