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 9 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #10318


    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:



    How do I get similar results in Monkey 2?




    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.)


    Mark Sibly

    Yes, modifying the manifest is the correct way to do this in monkey2.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.