Difference between revisions of "Processing to Android app"
m |
|||
Line 40: | Line 40: | ||
− | These are some examples in Processing to play around with:<br> | + | These are some examples in Processing to play around with:<br><br> |
− | [http://casperglorius.nl/processing/Accelerometer.zip Sketch with accelerometer] (uses Ketai library mentioned above!) | + | [http://casperglorius.nl/processing/Accelerometer.zip Sketch with accelerometer] (uses Ketai library mentioned above!)<br> |
− | [http://casperglorius.nl/processing/Audioinput.zip Sketch with audioinput (microphone)] | + | [http://casperglorius.nl/processing/Audioinput.zip Sketch with audioinput (microphone)]<br> |
− | [http://casperglorius.nl/processing/Touch.zip Sketch with touch (drag)] | + | [http://casperglorius.nl/processing/Touch.zip Sketch with touch (drag)]<br> |
Revision as of 17:35, 18 November 2014
It is possible to use Processing to make a native Android app. You can write your code in Processing and publish it to your phone or tablet through USB (provided that your device is in "developers mode").
To get started you need to install:
• Processing
• Android mode in Processing
• Android SDK (Software Development Kit)
Also it is possible to install additional libraries in Processing to access the sensors of your mobile device more easily. One that I found useful is the Ketai library.
The following steps worked for my computer (Processing 2.2.1 and on OSX 10.9)
- - - - - - - - - - - - - - - - - - - -
step #1
download processing
http://processing.org/download/
- - - - - - - - - - - - - - - - - - - -
step #2
install Android Software Development Kit to be able to create a android App.
http://developer.android.com/sdk/index.html?hl=i#download
Update the necessary tools and updates
- - - - - - - - - - - - - - - - - - - -
step #3
download and move android-mode for Processing and place in folder „modes”
(strangely the latest version of android mode @ the official website doesn’t work for me)
- - - - - - - - - - - - - - - - - - - -
stap #5
follow the steps in this blogpost to add a JDK to the Processing app’s Package Contents
http://forum.processing.org/two/discussion/6911/cannot-install-android-mode/p1
done!
These are some examples in Processing to play around with:
Sketch with accelerometer (uses Ketai library mentioned above!)
Sketch with audioinput (microphone)
Sketch with touch (drag)