Save/Restore app state #5318
Replies: 1 comment
-
Posted at 2022-10-14 by rigrig Apps could use the Posted at 2022-10-14 by @gfwilliams Yes... I had been wondering about that - you could potentially save/restore into Storage, but it's not going to be very fast, and potentially some peripherals that need setting up could end up broken when restored. As @rigrig says you can (and some apps do) just use the Posted at 2022-10-24 by g_lander So I've been trying to do a firmware thing for this, where certain Espruino builds would automatically save and load vardumps made with Posted at 2022-10-26 by @gfwilliams I'm sorry, I don't really have the bandwidth for this at the moment - but what you're doing there (basically just changing I'm not sure your In theory, yes, I'd be up for merging a PR that allowed you to save to image files (maybe not the timestamp/graphics/bit though). Ideally the changes in |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-10-14 by g_lander
One thing I like about smartphones is that they can remember the last state of previously opened apps for some time, which is handy for stuff like games and deep-nested setting menus.
I'm not sure how/if this is implemented on other smartwatches, but I think it could be beneficial to the BangleJS 2.
I think it could be done by just writing vardumps to Flash memory and just loading them when requested? BangleJS 2 doesn't really have free buttons or button combinations, so I'm not sure how state management (quick app open or state deletion) could be done without using up widget space, but maybe a widget button (kinda like the message widget) would be fine.
I figure if such a thing were to be implemented there would be
Bangle.on
events for before saving and after restoring.Beta Was this translation helpful? Give feedback.
All reactions