Android VR Cardboard

Hello, I need some help. I want to display the picture (so she was always before my eyes, even when rotated). When using the background(img) function, I just have error: handleDraw() called before finishing

My code:

import processing.vr.*;

PImage img;

void setup() {
  img = loadImage("starwars.png");

void draw() {

The example I need:

Not sure if you need to have you phone in landscape mode. Not sure how you could use VR in portrait.

Did you check this tutorial in the Processing Android site?