1

I found that in my app , onConfigurationChange() is not call. In manifest I put :

android:configChanges="keyboardHidden"

I want that when the keyboard is hide, onConfigurationChange() to be called. Why it is not called?

The method is not called when I force keyboard to be hide?

Gabrielle
  • 4,933
  • 13
  • 62
  • 122

2 Answers2

0

Hey i had the same problem as you. I don't know if it will work but i think it's worth a try. I just put android:configChanges="orientation|keyboardhidden" in all my activities i had declared in my AndroidManifest.xml so i had something like this :

    <activity 
        android:name=".appActivity"
        android:configChanges="keyboard|orientation" />                     
    <activity android:name=".app1Activity"
        android:configChanges="keyboard|orientation" />
    <activity android:name=".app2Activity"
        android:configChanges="keyboard|orientation" />             
    <activity android:name=".app3Activity"
        android:configChanges="keyboard|orientation" /> 

I tried toggling a breakpoint inside the method and it worked so you might want to try that as well, you never know!

Sorry if this doesn't help!

Ben Lefebvre
  • 359
  • 5
  • 21
0

This question has been asked many times, a common answer is:

android:configChanges="orientation|keyboardHidden" rather than
android:configChanges="keyboardHidden"

From This Page

Community
  • 1
  • 1
Chris Noldus
  • 2,432
  • 2
  • 20
  • 27
  • is not called even if i put android:configChanges="orientation|keyboardHidden" . My app is always portrait, so the orientation is not change – Gabrielle Sep 02 '11 at 09:02