Processing for Android

preview

This built-in constant tells you if the wallpaper is being shown in the preview of the wallpaper selector. After the wallpaper is finally selected, it will be restarted in non-preview mode to run as the background.


void draw() {
  if (preview) {
    text("This is a preview", 20, 20);
  }  
}