In the android eclipse, when the emulator stays in landscape the program does not change?

Asked

Viewed 83 times

1

In the android eclipse, when the emulator stay in landscape the program does not change continues in portrait how to solve it.

  • Post some of your code so we understand what you tried to do.

  • It would be nice to include your AndroidManifest.xml, if you tagged android:configChanges" é você quem precisa adaptar o layout, já que a Activitynão esta sendo reconstruída. Dê uma olhada no métodoonConfigurationChangedpara atualizar seu layout usando osetContentView`.

  • @Wakim on physical device works cool, but in emulator you do not press F11 it changes to landscape but the app continues in portrait.

  • I guess sometimes it’s emulator bug, the method onConfigChanges is it called? Taking advantage, to work with emulator/Avd I recommend using Genymotion, which is much faster/easier to use than Avd.

  • @Wakim thanks for the tip I’ll test Genymotion

1 answer

1


I believe it is some Bug. I also go through these problems on Mac and Windows.

When you press F11, sometimes it changes orientation, sometimes it doesn’t. But the problem only occurs within the application, because when I am on the Android home screen the problem does not occur.

The most correct is to use a physical device to carry out the tests. I only use the Emulator to simulate different screen sizes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.