Saturday, June 1, 2013

Setup Processing for Android development

Processing for Android project is aim to make it foolishly easy to create Android apps using the Processing API.

To setup Processing development tool for Android development, you have to install Android Developer Tools (ADT) in your system in advance.

Also you have to configure your Android SDK Manager to install Android 2.3.3 (API 10) - in Eclipse for Android Developer Tools, select Window -> Android SDK Manager:

Install Android 2.3.3 (API 10) in Android SDK Manager

otherwise you will have error of Unable to resolve project target 'android-10' when compile your Processing sketch.

Unable to resolve project target 'android-10'

- Download and install Processing software

Setup Processing for Android development:

Start Processing software:
- in Ubuntu, open Terminal, switch to your installed directory of Processing, type the command:
$./processing

- Select Add Mode in the Top-Right pull-down box.

Add Mode


- Select Android Mode, and click Install.

Add Android Mode

- You will be asked to select Android SDK installed location, click Yes.

select Android SDK installed location

- In the next dialog, select your installed location of Android SDK.
In my case of running on Ubuntu 13.04 with Xubuntu desktop, I cannot open sub-directory of Android in Folders box by clicking on Android, but I can direct enter Android/sdk/ in Selection box.

Select Android/sdk/

- Now you can switch to Android Mode in Top-Right pop-down box.

Switch to Android Mode


Android Mode of Processing


Next:
- Hello World of Processing for Android
- Another example code: Processing on desktop vs Processing for Android


2 comments:

Anonymous said...

How do i get to ubuntu?? What is ubuntu anyway.

Erik said...

Ubuntu is a linux distribution: http://www.ubuntu.com/