Android: what event fires when the on-screen keyboard appears?

I would like to connect to an event that fires when the Android screen appears on the screen. For example, when the user clicks EditText to invoke the keyboard. Does anyone know which event (or listener) to use?

Timo

+6
android
source share
2 answers

According to the following discussion topic at the Android Developers Google Group, the only way to solve this is to listen to the resized resizing of the main image. However, the stream is quite old. I wonder if any of the newer APIs improved a better way.

http://groups.google.com/group/android-developers/browse_thread/thread/9d1681a01f05e782

The last post explains the logic of the working solution.

+1
source share

It is not possible to determine when the keyboard appears, but if you want to check when the user clicks on edittext, you can register a click listener or onfocuschangedlistener for this view.

0
source share

All Articles