-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App force stops whenever i try playing any song. #17
Comments
I cannot duplicate this problem, can you get me the output of "adb logcat" showing the force close? With that I might be able to figure out what the problem is. Also, does this happen on every song or just on one song? If on every song it might be an Android O change. If on one song, it might be something in the song file. |
I happens to any song I pick. And how do I get the adb logcat ? My device isn't rooted. |
Sorry for my tardy response: I did not notice you had replied to my request for additional information. To get a logcat:
Since it is happening on every song and since the song names, performers and album artwork are showing, I suspect this is a permissions issue. The name, performers, etc. are gotten via calls to the Android media manager. The album art is also acquired that way but by a different API. Actually playing the track requires that Symphony can read the track file so the permissions on storage access matter for that. |
Odd thing on the screen shot of Symphony you posted: The player controls at the bottom don't look like a track has been picked. Even on a clean install (or with app data cleared) Symphony should have selected a (default) track to display data for. I suspect that tapping play on the player will cause issues because of that. If you tap on a track title above the player controls does it still crash? |
It played now then crashed .. I will make a gif soon |
Definitely crashing, but unless I can somehow get a trace of the crash I'll not be able to fix it. |
i will provide you with the logcat. |
I have recently built the latest version on my Android 9 with One UI version 1.0 and the app crashes on selecting a Song with this error message V/MediaPlayer-JNI: getDuration: 191242 (msec) |
Thanks for this . I have been looking for ways to make one. |
Sorry it has taken me this long to get back. . . Looks like the API for notifications has changed and I need to detect if the app is running on 8.1 or higher and if so create a unique channel ID. Unfortunately, I am having difficulty getting to developer.android.com to read up on the changes and won't have time to get to this again for a couple more days. Since I don't have a phone that runs that new a version of Android, I am hoping that one of you can do some testing for me, probably sometime next week. Thanks1 |
No worries I can contribute a revised method. I will request a pull or would you prefer something in the comments. |
If you have the time to contribute a revised method, I would accept a pull request. Thanks1 |
@realrufans and @ergodaveh - I think I have this fixed. Please re-open this issue or create a new one if you are still having problems. |
@n76 Works fine now. Thank you for this simple app. |
App version: 1.1.10
Screenshots
Device info
The text was updated successfully, but these errors were encountered: