Processing + Android Rapid visual design PETER KIRN createdigitalmusic.com + createdigitalmotion.com
Jun 27, 2015
Processing + Android
Rapid visual designPETER KIRN
createdigitalmusic.com + createdigitalmotion.com
Sketching
(CC-BY) Kristian D., via Flickr
processing.org
Processing is used by many different kinds of people to make many different kinds of creations.
On Android, features include 2D and 3D visuals, images, type, and data - and you can use native Android code.
You need:1. Android SDK (2.1 or later)
2. Processing pre-release (0190 in this demo)
Optional:3. A copy of Eclipse (very much optional)
Install components.1. Google APIs, Level 7
2. Android SDK 2.1, Level 7
Switch to Android Mode!(demo)
Point at the Android SDK.
Running Code: Emulator
Running Code: Connected Device
Your own Processing code:Adaptive screen sizes
Find the current sizescreenWidthscreenHeight
Set up the screensize(screenWidth, screenHeight, A2D);
(or A3D)
Your own Processing code:Touch
Mobile + Browser + Desktop
Developing with Processing and Androidin Eclipse
Mixing and Matching Processingand Android APIs
Applications + Code
FontsPFont.list()
.otf, ttf
Data visualizationloadStrings();
Applications + Code
Touch + KeysmotionX, motionY, pmotionX, pmotionY
surfaceTouchEvent
KeyEventVirtual keyboard, hardware keys
Override MENU, BACK
Applications + Code
Override screen orientationorientation(PORTRAIT);
orientation(LANDSCAPE);
DensityDisplayMetrics
Manifest + permissions, right in PDE
Join the community;Let's see what happens
wiki.processing.org/w/Androidprocessing.org
noisepages.com/groups/processing
createdigitalmotion.comcreatedigitalmusic.com