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

Audio file can't be found if too much files in data folder

$
0
0

Good day to everyone, I'm stuck in a problem since two days, googling everywhere and making only little steps forword. Now i decided to register me in this forum to ask for help :) . After some efforts i'm now able to run all kind of sketchs on my device "galaxy s2 (API 11)", via android mode, even displaying images by -> add file... (that creates a data folder) and all images are well understood by the device app. (processing 3.0.2, windows 10, 64 bit) When i was trying to put some audio, the first times i get crash from the app launched on the device, after i understood that the problem was that the file was not found by the apk app. So i found https://forum.processing.org/two/discussion/12819/how-do-i-get-sound-to-play-on-the-phone#latest

where @Akenaton (thanks you!) finally wrote a code that works. The problem now is that if i "run on device" the simple code, it works, but if i start inserting images in the data folder, at some number beethween 20 and 24 , during debug "j'arrive pas à préparer" it's shown (so, you are French :) i'm italian) .

What the hell?? Why if I increase the number of files ( size 3 or 4 MB, so no problem with total size) the try{}catch{} statement can't find the myfile.mp3???

I've done those tests without adding any additional line of code to the code that works (powered by Akenaton).

thanks for answering and for the attention ps: i also tried with my full code , and all images are well displayed and the sketch runs, without sounds,so the problem is just for .mp3 audio files


Viewing all articles
Browse latest Browse all 941

Trending Articles