SimpleMobileTools / Simple-Music-Player

A clean music player with a customizable widget, stylish interface and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
1.26k stars 410 forks source link

App no longer start on `WAV` files #610

Open basc opened 9 months ago

basc commented 9 months ago

I really like Simple-Music-Player. It is easy, small and works great. And Simple-Music-Player also plays WAV files.

Since 5.18 Simple-Music-Player doesn't start if you click on an WAV file in the app 'files'. Simple-Music-Player still plays WAV files if you choose an WAV file inside the app but not from outside the app.

Steps to reproduce the issue: Click on an WAV file in the app 'files'. Simple-Music-Player starts and quits again and an error message is shown: "Ein unbekannter Fehler ist aufgetreten" (An unknown error has occurred).

Expected behavior: Simple-Music-Player stays open and plays the WAV file.

In 5.17.1 it was working.

Device: GrapheneOS Android 13 Simple-Music-Player 5.18.1

Logcat logcat.txt

naveensingh commented 8 months ago

I tested this with a couple of wav files and it works fine. If the file was just added, maybe the app hasn't indexed it yet.

If the app just closes itself, that means it can't find that file in the media store or the provided intent data is not valid. Can you please try another file manager and see if it works?

basc commented 8 months ago

Thanks for your reply. I get wav files as mail attachments from my answering machine. So my use case is to open the wav file directly from the attachment to hear the voice message in SMP. This is no longer working in 5.18 and was working before in 5.17.1 I have downgraded to 5.17.1 and i can open the same wav file again. so the wav file is ok.

I found out something interesting. Maybe it is related to that problem. If i save the wav file from the mail attachment to folder "Download". I use the native app "Files" from aosp (com.android.documentsui) In "Files" if i click on "Downloads" open the wav file than SMP closes itself. But if i first click on "Audio" and then open the wav file from there than SMP starts playing the wav file. So maybe it is related to the media store?