title: Android: how to make keyboard enter button say "Search" and handle its click?
body: <p>I can't figure this out. Some apps have an EditText (textbox) with the help of which, when you touch it and it brings up the on-screen keyboard, the keyboard has a &quot;Search&quot; button instead of an enter key.</p>
  <p>I want to implement this. How can I implement that Search button and detect the press of the Search button?</p>
  <p><strong>Edit</strong>: found how to implement the Search button; in XML, <code>android:imeOptions=&quot;actionSearch&quot;</code> or in Java, <code>EditTextSample.setImeOptions(EditorInfo.IME_ACTION_SEARCH);</code>. But how do I handle the user pressing that Search button? Does it have something to do with <code>android:imeActionId</code>?</p>