1

I would like to have my android app ignore flip, is that possible? I added android:screenOrientation="portrait" to all of my activities but that is about as effective as the close door button on an elevator.

Noah Witherspoon
  • 57,021
  • 16
  • 130
  • 131
shaneburgess
  • 15,702
  • 15
  • 47
  • 66
  • Does your app ignore flip when you do that? Does it behave in any odd way? As far as I've experienced if you want to overwrite the default behavior of all apps (to be able to flip) then you have to explicitly state what orientation each of your activities is running in. Since this is what you are doing I would like to know if it works for you. – Ben Burnett Jun 04 '10 at 17:44
  • `android:screenOrientation="portrait"` works just fine, for its stated purpose. – CommonsWare Jun 04 '10 at 17:52
  • Maybe my question is bad. Actually the view stays the same but it reloads my activity for some reason. Should it do that? – shaneburgess Jun 04 '10 at 18:38

1 Answers1

4

It looks like your answer can be found here: android-how-to-make-application-completely-ignore-screen-orientation-change

Community
  • 1
  • 1
Ben Burnett
  • 1,554
  • 10
  • 17