AIMP Forum

AIMP for Android => Вопросы / Questions => Topic started by: Tom656516516 on November 17, 2021, 09:50:19

Title: Restore last play state (bookmarks)
Post by: Tom656516516 on November 17, 2021, 09:50:19
I have Android 11, memory card used as internal memory.
When I stop listening (pick up the phone) the track playback starts from the beginning. On Android 9 (or 10, can't remember), pause and play from bookmarks  worked without issue. I have bookmarking and resuming playback set up.
What should I do to get back the most important function of the player for me (I listen to training and audiobooks)?
Title: Re: Restore last play state (bookmarks)
Post by: Artem on November 17, 2021, 11:22:57
How you close the app?
Title: Re: Restore last play state (bookmarks)
Post by: Tom656516516 on November 17, 2021, 15:10:31
What do you mean? Actually I don't turn it off at all when I stop listening (e.g. press pause), I switch to another app or put the phone away. When I start the app again, the track is set from the beginning and not where I stopped listening.
Another thing I remembered - when I noticed the problem, I changed the memory type to internal in the app settings.
Title: Re: Restore last play state (bookmarks)
Post by: Artem on November 17, 2021, 16:22:03
Refer to the "About" dialog of the app, and check the "enable logging" option. Now, reproduce an issue and send the log file to me.
Title: Re: Restore last play state (bookmarks)
Post by: Tom656516516 on November 17, 2021, 18:29:59
OK, see attachment
Title: Re: Restore last play state (bookmarks)
Post by: Artem on November 19, 2021, 12:46:11
According to log, it seems that app was killed by OS as soon as it suspend the playback. So, app does not save it settings. MIUI is very aggressive firmware in cases like that (we does not yet support it officially, because I have no idea how to stable the app on it). I recommend you to try to add app to task dispatcher and battery optimization ignore list.
Title: Re: Restore last play state (bookmarks)
Post by: Tom656516516 on November 19, 2021, 19:57:11
I understand, I did as you wrote and it didn't help. Tough luck. In the meantime, I changed the SD card settings to portable memory (I know apps have trouble setting SD card as internal memory), but that didn't help either.
However, I noticed that when I turn off the app deliberately, the bookmark is created correctly and turning the app back on correctly plays the auto bookmark track... However, if I "abandon" the app, it loses the bookmark.

I have a custom ROM (crDroid 7.12), I will write on their Telegram, maybe they will find a solution.
Title: Re: Restore last play state (bookmarks)
Post by: Artem on November 23, 2021, 15:32:15
Please try this build:
https://disk.yandex.ru/d/T5jPgrDV6DqWPQ

I have improving my code to store the state as soon as app paused.
Additionally, I have added more logging (So, please send to me a new log if issue still happened);
Title: Re: Restore last play state (bookmarks)
Post by: Tom656516516 on November 23, 2021, 19:50:00
So, on crDroid telegram group nobody understands what the problem is :)
But I think the problem is gone, I send the current log (there was recently an update to the application, it seems)
Title: Re: Restore last play state (bookmarks)
Post by: Artem on November 24, 2021, 12:33:02
But I think the problem is gone, I send the current log (there was recently an update to the application, it seems)

Thank you for testing