views:

1941

answers:

1

Hi,

I created a full-screen application and set the default orientation to landscape. When I open the keyboard the application crashes therefore I would like to override the method which executes on keyboard slide. Does anyone know which method is that?

Thanks!

+2  A: 

In your case sliding the keyboard triggers this event

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
     // TODO Auto-generated method stub
     super.onConfigurationChanged(newConfig);  
    }

and for more information on handling screen orientation changes read this article.

tdelev