I am showing an AlertDialog in my app and even though I have set it to be non-cancelable, it gets cancelled when the hardware search button is pressed.
I tried overriding the keyDown method and detecting the key press and also the onSearchRequested method. But both of them do not work for the first time the button is pressed though they work after that.
Any ideas?
PS: I know this is a repeated question.... but nobody replied to it, that's why re-posting :)