I have the activity with several input fields. When activity started soft keyboard is showed. When back button pressed soft keyboard closes and to close activity need to press back button one more time.
So the question: is it possible intercept back button to close soft keyboard and finish activity in one press of back button without creating custom InputMethodService
?
P.S.: I know how intercept back button in other cases - onKeyDown()
or onBackPressed()
but in this case it's not works: only second press of back button is intercepted.