Share your experience!
Hi guys, so I have an Xperia Z3 Compact that is about a year old.
I haven't really had any problems with it except for the issue I am writing about now.
Not sure when it started, but the phone seems to kill apps that running but not in focus in the screen.
I play Pokemon Go a lot these days, and I also run an app called Pokemesh that help me find the Pokemons. Pokemesh I guess uses gps, some map functions, and has an overlay "button" which is supposed to open an overlay map when clicked.
So the idea is that I can play Pokemon Go, then either open the overlay map to see where the Pokemons are, or switch to the Pokemesh app to find them, and then switch back to Pokemon Go to catch them, BUT the problem is that when I switch from Pokemon Go to Pokemesh and use that app for a while, when I go back to Pokemon it's like it was never opened and it opens from scratch with login and everything. Same when I'm in Pokemon Go and want to switch to Pokemesh it seems to log me in as from scratch also. The overlay Pokemesh has also stops and disappears after some inactivity in Pokemesh.
I think it could have something to do with the phone trying to limit power consuming apps by closing them, but I can't find a way to shut off such things or figure out any other thing that could be the cause of this..
It's probably worth mentioning this is not limited to the Pokemon apps, but also for example the web browser that also seem as it's opening from scratch even though it's in my opened switchable apps (the apps I can access when clicking the square in the bottom right corner of the screen). I've seen the same for several other apps as well..
Please help me fix this so the apps are running side by side!
Regards, Bill
It might be the new Android Marshmallow feature called "Doze" and its battery optimization. Apps will be limited when put in the background for some time. You can exclude apps from being optimized:
Go to Settings -> Battery -> tap on the 3-dots icon in top right corner -> Battery optimization -> Apps -> Check the apps you don't want to be optimized
Note that this will reduce your battery time.
Both Pokemon Go and Pokemesh are already excluded there.. So unfortunately that doesn't seem to be the issue 
Do you have any task killers or memory optimizers installed?
Nope, nothing. I do however run an app called Clean Master which supposedly cleans junk from my phone and asks me if I want it to optimize some apps at times when the phone is running hot. But as far as I know it's not supposed to close apps without my knowledge..
Erm this one is a big no no, I advise to remove it and see how it goes without it. You can clean your cache data with only one tap from Settings -> Storage -> Cached data
So I tried uninstalling that app, but still the same issue so I guess that wasn't the solution
Any more suggestions or ideas I can try out?