Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

loadStrings(url) isn't working on Android mode

$
0
0

Hello,

when I tried changing the mode from Java, where the program was working, to Android mode, where I get the path separator error.

I'm putting in the following code, on which it crashes

loadStrings("http://mglolenstine.xyz/test.txt");

and I get the following error:

` FATAL EXCEPTION: Animation Thread Process: processing.test.monitor, PID: 19520 java.lang.IllegalArgumentException: File http://mglolenstine.xyz/text.txt contains a path separator at android.app.ContextImpl.makeFilename(ContextImpl.java:1944) at android.app.ContextImpl.getFileStreamPath(ContextImpl.java:549) at android.content.ContextWrapper.getFileStreamPath(ContextWrapper.java:193) at processing.core.PSurfaceNone.getFileStreamPath(Unknown Source) at processing.core.PApplet.sketchPath(Unknown Source) at processing.core.PApplet.createInputRaw(Unknown Source) at processing.core.PApplet.createInput(Unknown Source) at processing.core.PApplet.loadStrings(Unknown Source) at processing.test.trtl_monitor.Monitor.draw(Monitor.java:55) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PSurfaceNone.callDraw(Unknown Source) at processing.core.PSurfaceNone$AnimationThread.run(Unknown Source)

`

And I don't understand... I've read this article, but it doesn't seem to help me, as the OP fixed it by adding HTTP:// in front of 'his' url.


Viewing all articles
Browse latest Browse all 941

Trending Articles