libpd / puredatap5

Tentative Processing support for libpd; use at your own risk.
GNU General Public License v2.0
60 stars 11 forks source link

HelloPd.pde crash in Android mode #8

Open sonicdebris opened 10 years ago

sonicdebris commented 10 years ago

Trying to run the example sketch with processing 2.0.3 on mac os 10.6.8 and running it on a real android device, I get an exception when trying to load the patch:

FATAL EXCEPTION: Animation Thread
java.lang.RuntimeException: java.io.FileNotFoundException: /data/data/processing.test.hellopd/files/data/test.pd
    at org.puredata.processing.PureData.openPatch(Unknown Source)
    at processing.test.hellopd.HelloPd.setup(HelloPd.java:35)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:856)
Caused by: java.io.FileNotFoundException: /data/data/processing.test.hellopd/files/data/test.pd
    at org.puredata.core.PdBase.openPatch(PdBase.java:209)
    ... 6 more

I guess that's because the file must be copied from the apk to the right folder first. I thought this would be handled "internally", isn't it so?