Processing for Android

Almost all of the Processing API can be used in the Android mode. There is a number of new functions and constants that are unique to the Android mode in version 4.0+, specially relevant to wallpapers, watch faces, and VR apps.

Environment

displayDensity
getActivity()
getContext()
orientation()

Permissions

hasPermission()
requestPermission()

Multitouch

touches array
touchEnded()
touchMoved()
touchStarted()

Keyboard

closeKeyboard()
openKeyboard()

Wallpapers

wallpaperHomeCount()
wallpaperOffset()
wallpaperPreview()

Watch faces

wearAmbient()
wearBurnIn()
wearInsets()
wearInteractive()
wearLowBit()
wearRound()
wearSquare()

VR

STEREO
MONO

cameraUp()
eye()
getEyeMatrix()
getObjectMatrix()