▲ | rolandog 5 hours ago | |
That's quite interesting. How would one go about making one's app or services suspend/resume friendly? Are there well-known good practices?... Or, do they need to be rediscovered as they are perhaps proprietary know-how? | ||
▲ | gf000 2 hours ago | parent [-] | |
By making a soft and then a hard suspend the reality they have to abide by, or otherwise they are killed and users will think they are broken apps. Mobile apps just had to "grow up" in this environment, plus they have proper APIs for this two-way communication between OS and the app. Android will just ask the app to save its state and then simply unload it from memory (after a while) - but this also makes perfect sense for the desktop scene, you also want to improve energy efficiency there. A spreadsheet app doesn't have to continuously run when it's in the background. You just have to add proper APIs and permissions so that apps can optionally ask for extra background work. |