title: Hardware and Software Search button in Android
body: <p>I've implemented search functionality as explained in <a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow">http://developer.android.com/guide/topics/search/search-dialog.html</a>. This works fine on Android 2.3.5 with the hardware search button. Now I wonder how I could integrate a software search button. I added a button in the <code>ActionBar</code> but now I wonder how you can show a dialog for inputting the query as with the dialog showing up after pressing the hardware button.</p>