Detecting when user has dismissed the soft keyboard
<p>I have an EditText widget in my view.  When the user selects the EditText widget, I display some instructions and the soft keyboard appears.</p>

<p>I use an OnEditorActionListener to detect when the user has completed text entry and I dismiss the keyboard, hide the instructions and perform some action.</p>

<p>My problem is when the user dismisses the keyboard by pressing the BACK key.  The OS dismisses the keyboard, but my instructions (which I need to hide) are still visible.</p>

<p>I've tried overriding OnKeyDown, but that doesn't seem to get called when the BACK button is used to dismiss the keyboard.</p>

<p>I've tried setting an OnKeyListener on the EditText widget, but that doesn't seem to get called either.</p>

<p>How can I detect when the soft keyboard is being dismissed?</p>
