Hi, nice to meet you.
BufferedReader reader;
String line;
PFont font;
void setup() {
font = createFont("aaaa.vlw", 32);
size(1000,1500);
// Open the file from the createWriter() example
reader = createReader("positions.txt");
}
void draw() {
textFont(font);
String[] lines22;
lines22 = loadStrings("\\\\192.168.0.202\\share\\t1.txt");
for (int i = 0; i < lines22.length; i = i+1) {
text(lines22[i], 300, 200 + 100*i);
}
}
Why is there no error in JAVA? But why is not it running on Android? The concept is to share files through shared folders. And the status of the system is visible through the shared file.
Java mode works well. But Android mode does not work well. Why?
> blendMode(), or this particular variation of it, is not available with this renderer.
positions.txt does not exist or could not be read The file "\\192.168.0.202\share\t1.txt" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. FATAL EXCEPTION: Animation Thread Process: processing.test.android_tcp, PID: 17405 java.lang.NullPointerException: Attempt to get length of null array at processing.test.android_tcp.android_tcp.draw(android_tcp.java:38) 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:818)</del>