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.
displayDensity
orientation()
getActivity()
getContext()
getFragmentManager()
getWindow()
hasPermission()
requestPermission()
matriz de toques
touchEnded()
touchMoved()
touchStarted()
closeKeyboard()
openKeyboard()
wallpaperHomeCount()
wallpaperOffset()
wallpaperPreview()
wearAmbient()
wearBurnIn()
wearInsets()
wearInteractive()
wearLowBit()
wearRound()
wearSquare()
STEREO
MONO
calculate()
cameraUp()
eye()
getEyeMatrix()
getObjectMatrix()
The PApplet class in the Android mode exposes some functions from the underlying Android API to make easier to receive notifications from the system:
onActivityResult()
onNewIntent()
The Fragment API for adding menu items to the App Bar is also available through PApplet:
onCreateOptionsMenu()
onOptionsItemSelected()
onCreateContextMenu()
onContextItemSelected()
setHasOptionsMenu()