0

I am an android developer. I am developing one application for a samsung device which supports hard keyboard. In this application, I have to change the orientation of my application only when hard keyboard is popped out as well as Editview is focused.

Can anyone please help me to find the solution of it.

Thanks in advance.

user519846
  • 999
  • 7
  • 15
  • 26

1 Answers1

0

Activity restart on rotation Android

Basically, define in your Manifest that your activity will handle keyboard|orientation changes. So, in the Manifest, check Config changes that you want to handle yourself. And override this function to handle the changes

public void onConfigurationChanged(Configuration newConfig)
{

}
Community
  • 1
  • 1
Entreco
  • 12,738
  • 8
  • 75
  • 95