Take a look at the onConfigurationChanged(). If you add in the manifest that you want to handle the event, you can check the configuration object for keyboard displayed and run your code. http://developer.android.com/guide/topics/resources/runtime-changes.html
On Nov 30, 9:41 am, Juhani <[email protected]> wrote: > Hi all! > > We're trying to trigger an animation whenever the on screen keyboard > is shown or closed. There doesn't seem to be any options to register > listeners directly to that event either in the EditText or in the > window / app in general. Only solution I managed to find was an older > post here where solution was to listen to size changed events. > From this > thread:http://groups.google.com/group/android-developers/browse_thread/threa... > > Unfortunately, that solution doesn't work in landscape mode. For some > reason the onSizeChanged doesn't get called in landscape mode. > > As the previous thread is already very old I was hoping that maybe in > 2.0 or later versions there would be an API for that. What is the best > way to get notifications when the OSK is opened / closed? > > Thanks! > > Juhani -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

