Posts: 88
Threads: 29
Joined: Feb 2020
Reputation:
0
I had several hundred of the 600+ songs I need to delete individually checkmarked (UGH!) and then Alt-Tabbed to check the Forum on my browser. When I Alt-Tabbed back to MSP, all my checkmarks were gone, wasted 30 minutes work. Is this the way it's supposed to behave? Why wouldn't its state remain identifical to when I left it?
Posts: 13,539
Threads: 302
Joined: Apr 2012
Reputation:
241
Did the app get suspended and restarted by windows? If so, that would do it, as the checkmark state isn't saved in the suspended state. You can avoid this by running the app in windowed mode instead of in full screen mode (hit F11 to exit fullscreen mode). In Windowed mode, Windows won't suspend MobileSheets so you can alt-tab without any issues. I'm sorry you lost all that time though.
Mike
Posts: 13,539
Threads: 302
Joined: Apr 2012
Reputation:
241
04-21-2020, 04:24 PM
(This post was last modified: 04-21-2020, 04:31 PM by Zubersoft.)
Looking at my code, it looks like I end the selection mode when the app is suspended. So I'll just remove that line of code so that this issue doesn't occur in the future. As far as your question, Windows will suspend any UWP application that is in the background if it decides it needs to (either to conserve battery life or other resources) when the device is running in tablet mode or if the app is in fullscreen mode and is then put in the background. It can then even kill the app in the background if it decides it needs to (although you shouldn't run into this with normal usage). There are some settings you can adjust for this in the battery settings (you can choose for each application whether it's allowed to run in the background, but this doesn't guarantee Windows will honor it). I've done everything I can in the code to try to keep the app alive if Windows suspends it. I can't interfere with alt+tabbing in any way (otherwise malicious apps could prevent you from exiting the application).
Thanks,
Mike