I often switch back and forth between two apps (for example at the gym between JEFIT and Kindle app, or on the train between IRC and Firefox, or while hiking between a map/route app and the Camera), and many apps 'break' when they go to the back for too long - they lose track of what was going on or otherwise behave buggy.
Now that wasn't always the case, and with an older Android version, that only started happening when I had four or more apps to switch between. I'm guessing it's new optimization settings, but I'd very much like to either turn that off completely or turn it off for specific apps (some apps are more sturdy and don't suffer problems from this).
I know my device can physically handle those apps running at the same time because if I switch back and forth in under about 60 seconds, the apps stay loaded just fine.
So, anyone know what causes this, and how to configure this behaviour ? Settings, options, maybe a tweaking app ? I'm open to try anything.
Current config is Samsung Galaxy S3 running CyanogenMod 12 (which is Lollipop)