OK...so I'm using the latest version of Ketai library, on my Samsung s3 mini, running 4.1.1....(with Processing 2.0.3)
When I open up the Library example app 'CameraGettingStarted', i can run it perfectly fine on my device. [as do my own Android Processing apps].
The 'CameraGettingStarted' app installs, runs, and works fine. I can tap the screen and the camera starts as normal.
So far, so good.
So, if I copy-and-paste the code into another sketch and run it...it compiles, installs, runs....and launches. Then, when I tap the screen to start the camera...it doesn't work, and the console spits out the following:
Failed to open camera for camera ID: 0:Fail to connect to camera service
If I type the code from scratch...(including importing Ketai etc.).....it doesn't work. App runs fine, but once I go to start the camera i get that.
But...the Ketai example works fine...
Any ideas what's going on?
EDIT!:
No sooner had I posted this, I worked it out.
The problem is with the AndroidManifest.XML files...the Ketai one has permissions set to access the camera, mine didn't.
This is probably all explained had I read a bit more into Ketai :) but if not, i'll leave this here as it might be of some help to others. (or the Mods might just delete it too.....)
Anyway, you need to make sure your AndroidManifest.XML is the same as the Ketai one.....
I'm just trying to get started with Toxiclibs. I've installed it, etc. and when ever I go to run one of the example sketches, I get an error if it is using the Iterator class...
I've noticed something odd. I have a sketch which uses noise() that I then map to the width and height of the display window. On Java Mode this works fine, and the co-ordinates move around the whole display.
However, when I switch to JavaScript mode, the values seem to constrain themselves to near the centre of the screen (or near the starting point) They don't drift near as much as in the Java mode.