Loading...
Logo
Processing Forum
In light of this post it seems that it is possible to access the android java libraries from within a Processing script sketch, however when I type

Copy code
  1. import android.hardware.Camera
for example, the libraries are not found. They are installed on my system (I have ran the Android SDK HelloWorld) but they don't seem to be on my Processing 'path'

How can I link these libraries into my Processing path?

Regards,

Brendan

Replies(9)

Is your sketch in "Android Mode"? (Android menu -> Android Mode).  If not, it won't find those libraries for import.

Hello @brendanarnold


Did you get any further with this problem of not finding the android java libraries? 

I appear to be having the same problem and I have seem various other threads on here asking the same thing. 


I have this SDK installed and set up ok (projects from eclipse are compiling fine and running on the emulator using various libraries) but if I try and include any android libraries in a processing in sketch in android mode e.g.


import android.media.*;

 

It builds and launches ok but I'm getting:


No library found for android.media


Any ideas? Running processing 0194. Many thanks.

I have the same messages on 0194, but it's not affecting the sketch. Is it on yours ?
No I didn't get any further although I didn't look very hard - at the moment I'm just playing about with the library ...

@Jesse Scott Yes it appears to. I see the new release (0195) has addressed this bug http://forum.processing.org/topic/processing-0195-now-posted


However, I just download 0195 and now my sketches are completely screwed - can't find SDK etc, nothing works! Anyway, that is another story 

Oh no!

I haven't tested more than one or two with 0195 yet, but they all seem fine...

ok 0195 is running fine actually, false alarm. My initial problem was with a proxy settings on my one of my machines here when trying to update the SDK. I have tried it on another machine, updated the SDK through the SDK manager and 0195 is now working as expected. Contributed libraries appear to be working too. Nice.

I understand it has been a while but I am having the same problem that @ sijroberts was having with android.media and the rest of the SDK while still being able to write and push apps to my phone. Im on the absolute latest version of processing, so the fix that came out a year ago is certainly not helping out. Any help?