Sketch can't find adb
in
Android Processing
•
2 years ago
Hi
I'm trying to get a Processing sketch to read the directory structure of an android device, connected via usb to the computer running the sketch. I'm using adb (from android sdk) and exec in Processing to do this. As this is just a standard Processing sketch issuing a shell command, the sketch is run in standard mode. But the problem is that it works only if I have two instances of Processing running an instance of the PDE in Android mode and another instance of the PDE with the actual sketch in standard mode. In other words, the sketch only works if I have another PDE in android mode also running at the same time (it does not matter if any code is in the android sketch or not).
When the sketch fails to run (that is when I don't have another instance of PDE in android mode open) the error I get is noted as
If so can I explicitly point to a location from a sketch that is outside of the current sketch folder? for example
/home/user/myfolder/
does not seem to work?
I'm trying to get a Processing sketch to read the directory structure of an android device, connected via usb to the computer running the sketch. I'm using adb (from android sdk) and exec in Processing to do this. As this is just a standard Processing sketch issuing a shell command, the sketch is run in standard mode. But the problem is that it works only if I have two instances of Processing running an instance of the PDE in Android mode and another instance of the PDE with the actual sketch in standard mode. In other words, the sketch only works if I have another PDE in android mode also running at the same time (it does not matter if any code is in the android sketch or not).
When the sketch fails to run (that is when I don't have another instance of PDE in android mode open) the error I get is noted as
- error = 2
- No such file or directory
If so can I explicitly point to a location from a sketch that is outside of the current sketch folder? for example
/home/user/myfolder/
does not seem to work?
1