implement Android accelerometer using Processing API