FYI: Turning on "Don't Keep Activities" in developer options breaks music player functionality

Update: The below behavior happens if you switch on the “Don’t keep activities” setting in developer options. I attempted this to optimize battery life, but the music player stopped working, and battery didn’t improve. Leading the post up as an FYI

I’m experiencing a bug with the default music app, where the track I’m listening to is stopped, and the progress goes back to 0:00.

Two ways this happens:

  1. Start the song
  2. Lock the phone by using the lock button on the side, or by letting your phone lock itself after being idle
  3. Unlock the phone (I use fingerprint unlock)
  4. The song is now stopped and progress reset to 0:00. You must click play again to resume (from the beginning)

The second way it happens:

  1. Start the song
  2. Press the button to go to Home Screen
  3. Open music app by pressing the app icon
  4. The song is now stopped and progress reset to 0:00. You must click play again to resume (from the beginning)

I would say this is a critical one to fix to make the app usable. I am on version 1.1.1. I have side loaded a couple of apps and changed a few developer settings so it would be great to confirm if this is happening for a fully stock phone without side loading.

1 Like

@brendxn Thank for pointing this out. It’s certainly a bug because I can’t really recreate it.

Good to hear, thank you very much for checking. I will update the title and post for clarity.

For anyone who is interested, or facing the same problem, I’ve made changes in developer settings suggested in this post, which are likely related. I will check.

Otherwise, I’ve only side loaded a few basic apps like WhatsApp, Her WeGo, and a podcasting app. Will try to revert them and follow up.

1 Like

Thanks again, update - the cause was the below change in developer settings:

I made this change in an attempt to improve battery life, but when I turn it back off, the music player seems to work as expected. So false alarm - I broke this one :slight_smile:

(I now see this has been mentioned in the other thread a few hours ago, so nothing else to add there).

2 Likes