After click on the input field in android webview the keyboard appears. When I click on the back button I would like the keyboard to close. If the keyboard is closed and the back button is pressed, I need to go to the previous page. For example, Chrome behaves like this.
I did not find a reliable way to determine whether the keyboard is open or not. Maybe I'm going the wrong way and I can do without determining the openness of the keyboard manually?