Error with player

but as you can see, i don't save it directly in root i save it as /Encours.txt (save it in root doesn't works) , and then I copy it in root. Copy in root whith Taifun extension works

This is something you have to find out... check your blocks... as test add some delay between reading and playing

Are you playing random files?
As it occurs only once a week, probably a file is playing, the next file to play is by accident the same file again and you are trying to get its data?

Taifun

No, not on Android 11+. Period.

There is no way to write to the root dir of the external storage on Android 11+ (even not with SAF) unless requesting and granting MANAGE_EXTERNAL_STORAGE permission.

today i sart playing file and read tags while reading (because if image is big it can take some time)...I will try to first read tags and then play file (I didn't do that to not have pause playing next song)

so I don't know...becase as i said it seems to bo Android 12, but i can confirm that i can copy files in root...(i can delete it manually and my app rewrite it)

Then MANAGE_EXTERNAL_,STORAGE permission must have been granted.

yes i started my app with

As I said this permission no longer exists on Android 11+.

yes i understand...but i have no explanation !

if i can do something to clear that i will do, but what ?

Neither do I.

Test your app on any other Android 11+ and/or Android 13+ device. It will NOT work.