Portrait Mode on Android About Monkey 2 › Forums › Monkey 2 Programming Help › Portrait Mode on Android This topic contains 2 replies, has 2 voices, and was last updated by Mark Sibly 5 months, 2 weeks ago. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts September 7, 2017 at 1:26 pm #10318 kheldar13Participant I was working with ‘viewlayout’ example, and it works fine for android except that it goes into Landscape mode by default. Even if my orientation is up and down it still remains in Landscape. In the previous iteration of Monkey I used a directive to put it into the mode I wanted: #ANDROID_SCREEN_ORIENTATION=”landscape” #ANDROID_SCREEN_ORIENTATION=”locked” How do I get similar results in Monkey 2? September 7, 2017 at 11:35 pm #10326 kheldar13Participant Nevermind. I just changed the AndroidManifest.xml and that works. There doesn’t seem to be a way to pass preprocessor directives from code.(if there is I am missing it.) September 7, 2017 at 11:37 pm #10327 Mark SiblyKeymaster Yes, modifying the manifest is the correct way to do this in monkey2. Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic.