Thank you for the tip. Unfortunately it doesn't seem to work. Whatever I try I cannot get the onConfigurationChanged events. Neither in Application or in Activity. I have tried different combinations in manifefest file's configChanges but nothing I put there seems to make any difference.
Only event that I can get my hands on when the OSK is shown/hidden is onLayout. That doesn't give enough information though as none of the sizes actually change even in my Activity's content view. I could solve this if I knew if the keyboard is visible or not after this event is triggered but I don't seem to be able to find any way to figure that one out either. Isn't there really a simpler API for this? I would imagine that this would be pretty common problem. Thanks! On Nov 30, 5:17 pm, StevePotell <[email protected]> wrote: > 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

