0

I have a viewSwitcher containing two views. Is it possible that when I am on a certain view, to block screen orientation changes?

Buda Gavril
  • 20,719
  • 39
  • 122
  • 185

1 Answers1

0

You can check here: How do I disable orientation change on Android? and here: http://groups.google.com/group/android-developers/browse_thread/thread/b96a845cbce44af4?pli=1 on how to set requested orientation on runtime. Hope this helps!

Community
  • 1
  • 1
Dimitris Makris
  • 5,095
  • 2
  • 31
  • 53
  • I don't need to disable orientation changes for the activity, this means that other views from switcher will not switch the orientation. I need to disable orientation only when I am on a certain view from switcher. – Buda Gavril Oct 18 '11 at 12:33
  • Yeap, when moving to this specific view you will set orientation only to landscape for example, and before you move to the next, you will enable it again. – Dimitris Makris Oct 18 '11 at 12:35