View Single Post
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#907
Originally Posted by zimon View Post
But also many (lazy) Android-developers do not just care if their app go to Stopped-state. They just assume a user would always run their app in the foreground and then quit it when a user is done with it. It then gets frustrating if a user goes back to the app and expects it to be in the same state where (s)he left it.
Because the Android one is a stupid paradigm. Linux already contains a layer that is designed for handling bazillions of processes that are doing nothing, and it will transparently swap them out when there is memory pressure. As long as there is swap, which for some reason Android seems not to have.

The fact that some idiots decided to implement a new layer on top of this one that for some weird reason forces developers to manually implement checkpointing (aka saving and restoring state) into each and every small application is something I cannot understand. Possibly it has more to do with Android's PalmOS roots than anything else.

Originally Posted by zimon View Post
Lets not go to too deep in this OT, but the terminal window program's backend could (should) be programmed to be Service and IntentService and it could do just that what you describe. Terminal's GUI would be a normal Activity which connects to that backend which is running CLI processes and bash. The GUI part could be killed in between when a user leaves it (the terminal window) to the background.
Great, so apart from the already existing separation between the terminal process and the bash process (whose only relation is that one is the controller of the other's tty), I have to make up an extra third process that was previously not needed just to fit into this weird reinvention of the wheel. And invent a new IPC paradigm (in Java nonetheless) to communicate the terminal controller with this new third process.

Last edited by javispedro; 2013-12-03 at 04:53.
 

The Following 14 Users Say Thank You to javispedro For This Useful Post: