processing for android: getting started

20
Processing + Android Rapid visual design PETER KIRN createdigitalmusic.com + createdigitalmotion.com

Upload: peter-kirn

Post on 27-Jun-2015

35.604 views

Category:

Technology


5 download

DESCRIPTION

A look at the upcoming Processing for Android, a free, friendly code environment for rapidly "sketching" with media on the mobile platform. From Android Only, Stockholm, Sweden, September 29 2010.

TRANSCRIPT

Page 1: Processing for Android: Getting Started

Processing + Android

Rapid visual designPETER KIRN

createdigitalmusic.com + createdigitalmotion.com

Page 2: Processing for Android: Getting Started
Page 3: Processing for Android: Getting Started

 

 

Sketching

(CC-BY) Kristian D., via Flickr

Page 4: Processing for Android: Getting Started

 

processing.org

Page 5: Processing for Android: Getting Started

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.

Page 6: Processing for Android: Getting Started

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)

Page 7: Processing for Android: Getting Started

Install components.1. Google APIs, Level 7

2. Android SDK 2.1, Level 7

Page 8: Processing for Android: Getting Started

Switch to Android Mode!(demo)

Page 9: Processing for Android: Getting Started

Point at the Android SDK.

Page 10: Processing for Android: Getting Started

Running Code: Emulator

Page 11: Processing for Android: Getting Started

Running Code: Connected Device

Page 12: Processing for Android: Getting Started

Your own Processing code:Adaptive screen sizes

Find the current sizescreenWidthscreenHeight

Set up the screensize(screenWidth, screenHeight, A2D);

(or A3D)

Page 13: Processing for Android: Getting Started

Your own Processing code:Touch

Page 14: Processing for Android: Getting Started

Mobile + Browser + Desktop

Page 15: Processing for Android: Getting Started
Page 16: Processing for Android: Getting Started

Developing with Processing and Androidin Eclipse

Mixing and Matching Processingand Android APIs

Page 17: Processing for Android: Getting Started

Applications + Code

FontsPFont.list()

.otf, ttf

Data visualizationloadStrings();

Page 18: Processing for Android: Getting Started

Applications + Code

Touch + KeysmotionX, motionY, pmotionX, pmotionY

surfaceTouchEvent

KeyEventVirtual keyboard, hardware keys

Override MENU, BACK

Page 19: Processing for Android: Getting Started

Applications + Code

Override screen orientationorientation(PORTRAIT);

orientation(LANDSCAPE);

DensityDisplayMetrics

Manifest + permissions, right in PDE

Page 20: Processing for Android: Getting Started

Join the community;Let's see what happens

wiki.processing.org/w/Androidprocessing.org

noisepages.com/groups/processing

createdigitalmotion.comcreatedigitalmusic.com