0

manifest:

<activity
   android:windowSoftInputMode="stateUnspecified|adjustResize"
   android:name="com.sample.MainActivity"
   android:screenOrientation="sensorLandscape"
   android:configChanges="keyboardHidden|orientation|screenSize"
   android:label="@string/app_name" >
   <intent-filter>
       <action android:name="android.intent.action.MAIN" />
       <category android:name="android.intent.category.LAUNCHER" />
   </intent-filter>
</activity>

While the onConfigurationChanged never called when I show or hide keyboard, rotate screen.

Who knows why?

philip
  • 103
  • 2
  • 8

1 Answers1

1

The line

android:screenOrientation="sensorLandscape"

by default means the application will not handle any orientation changes. Try removing this line and test again?

Ivan
  • 149
  • 1
  • 12