Difference between revisions of "Processing to Android app"

From Interaction Station Wiki
Jump to navigation Jump to search
(Created page with "It is possible to use Processing to make a native Android app. You need to install: • Processing • Android mode in Processing • Android SDK (Software Development Kit)...")
 
 
(14 intermediate revisions by one other user not shown)
Line 1: Line 1:
It is possible to use Processing to make a native Android app.  
+
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").
  
You need to install:
+
To get started you need to install:
  
• Processing
+
• Processing <br>
• Android mode in Processing
+
• Android mode in Processing<br>
• Android SDK (Software Development Kit)
+
• Android SDK (Software Development Kit)<br>
 
 
Also it is possible to install additional libraries in Processing to access the sensors of your mobile device more easily. One of them is the
 
  
 +
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 [http://code.google.com/p/ketai/ Ketai library].
  
 
The following steps worked for my computer (Processing 2.2.1 and on OSX 10.9)
 
The following steps worked for my computer (Processing 2.2.1 and on OSX 10.9)
 +
<p>
 +
- - - - - - - - - - - - - - - - - - - - <br>
 +
'''step #1'''<br>
 +
download processing<br>
 +
http://processing.org/download/
 +
</p>
 +
<p>
 +
- - - - - - - - - - - - - - - - - - - - <br>
 +
'''step #2'''<br>
 +
install Android Software Development Kit to be able to create a android App.<br>
 +
http://developer.android.com/sdk/index.html?hl=i#download<br><br>
  
- - - - - - - - - - - - - - - - - - - -  
+
Update the necessary tools and updates
'''step #1'''
+
</p>
download processing
+
<p>
https://processing.org/download/
+
- - - - - - - - - - - - - - - - - - - - <br>
 +
'''step #3'''<br>
 +
download and move [http://dl.dropboxusercontent.com/u/5898761/AndroidMode.zip android-mode for Processing] and place in folder „modes”<br>
 +
(strangely the latest version of android mode @ [http://github.com/processing/processing-android/wiki the official website] doesn’t work for me)
 +
</p>
 +
<p>
 +
- - - - - - - - - - - - - - - - - - - - <br>
 +
'''stap #5'''<br>
 +
follow the steps in this blogpost to add a JDK to the Processing app’s Package Contents<br>
 +
http://forum.processing.org/two/discussion/6911/cannot-install-android-mode/p1
 +
</p>
  
- - - - - - - - - - - - - - - - - - - -
+
done!<br><br>
'''step #2'''
 
install Android Software Development Kit to be able to create a android App.
 
https://developer.android.com/sdk/index.html?hl=i#download
 
  
update the necessary tools and updates
+
'''This is stuff I used to install'''<br>
 +
[http://casperglorius.nl/processing/android-processing-stuff.zip install files (Java and Androidmode)]<br><br>
  
- - - - - - - - - - - - - - - - - - - -
+
'''The Genymotion emulator'''<br>
'''step #3'''
+
To emulte a Android device on your computer you can use this software. You can login with the interaction station account to download stuff:<br><br>
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)
 
https://dl.dropboxusercontent.com/u/5898761/AndroidMode.zip
 
  
- - - - - - - - - - - - - - - - - - - -
+
user: interactionstation<br>
'''stap #5'''
+
pass: interactionstation<br><br>
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
 
  
 +
To use this emulator on Mac you do not only need to download [http://www.genymotion.com/ Genymotion] but also install this [http://www.virtualbox.org Virtual box].<br><br>
  
 +
'''These are some examples in Processing to play around with:'''<br>
 +
[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)]<br>
 +
[http://casperglorius.nl/processing/Touch.zip Sketch with touch (drag)]<br>
  
done!
+
[[Category:Processing]]

Latest revision as of 16:01, 21 November 2022

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!

This is stuff I used to install
install files (Java and Androidmode)

The Genymotion emulator
To emulte a Android device on your computer you can use this software. You can login with the interaction station account to download stuff:

user: interactionstation
pass: interactionstation

To use this emulator on Mac you do not only need to download Genymotion but also install this Virtual box.

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)