You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the same android app I use output = createWriter(sdPath+logfilename+"_log"+".csv"); to write a log file to an absolute path "sdPath" and this works without rejecting the / slash file separator.
Running the SimplePlayback example (processing4.2) on an android 13 (and others) phone throws the error:
java.io.FileNotFoundException: /data/user/0/processing.test.simpleplayback/files/null.wav: open failed: ENOENT (No such file or directory)
command that causes the error:
soundfile = new SoundFile(this, "null.wav");
the "null.wav" file is located in the data directory of the app.
i also checked absolute path on internal or external storage but the SoundFile Class doesnt accept sparators in the path.
The path that the SoundFile(this, "null.wav"); throws is different from the correct android path.
path from error SoundFile(this, "null.wav");
/data/user/0/processing.test.simpleplayback/files
#######
path from
SDcards = context.getExternalFilesDirs(null);
sdPath0 = SDcards[0].toString() ;
sdPath1 = SDcards[1].toString() ;
sdPath0: /storage/emulated/0/Android/data/processing.test.simpleplayback/files
what can I do to get the SoundFile playing the .wav file from internal memory or external SDCard on an android?
The text was updated successfully, but these errors were encountered: