ConfigChanges = "orientation" does not start on Galaxy Nexus

Hello, I have a strange error when I want to cause a change in orientation on Galaxy Nexus (4.0.4), it just does not go into the onConfigurationChanged(Configuration) function. On HTC Desire (4.0.4), it works without any problems with the same code. And even on an emulator with 720p it works. I tried to upgrade to Android 4.1, but I still have the same problem.

Does anyone have the same problems or some solutions?

+4
source share
4 answers

I see both devices running Android 4.x, but try adding a screenSize value as described in my previous answer here .

+6
source

In the manifest, int tag <activity> , add android:configChanges="orientation" . This tells the system that your activity will process orientation changes on its own, so the onConfigurationChanged () function will be activated.

0
source

screenSize on Android 4.X is necessary. Try another Android compiler.

0
source

If you previously called setRequestedOrientation(..) in action, onConfigurationChanged(Configuration) not triggered by the automatic rotation detection system.

0
source

All Articles