Landscape with OPENGL renderer on Nexus 4

edited October 2013 in Android Mode

Hi,

My Nexus 4 screen stays white when I use orientation(landscape) and the OPENGL renderer together. Portrait and OPENGL works fine as well as landscape and the default renderer. any suggestions?

thanks, ralf

my code is:

    void setup() {
      size(displayWidth, displayHeight,P3D);
      orientation(LANDSCAPE);
    }


    void draw() {
      background(0);
      stroke(255);
      strokeWeight(5);
      line(0, 0, width, height);
      stroke(0, 255, 0);
      line(0, height/2, width, height/2);
    }

Answers

  • edited November 2014 Answer ✓

    I believe that that method of setting the orientation is out of date. Instead, edit theactivitytag in theAndroidManifest.xmlfile to includeandroid:screenOrientation="landscape".

  • thanks for the hint. it works now!

  • Saved my bacon, as well. Thanks!

  • Thank you calsign, you are definitely right

  • Thanks! This worked for me. I'm using Processing 2.0.3 and the Android mode that came with it.

Sign In or Register to comment.