View Single Post
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#1171
Originally Posted by daperl View Post
If this is true, then it seems there's some asynchronous mechanism for an Android process to request a restart or be kept alive. That's pretty powerful, and if done right, an app could run indefinitely.
See the reference from Android projet : yes, a software using a service (so it is divided in client+server way) can run in background without limitations, in theory.

Anyway, from what I knew and I recently learned, the Android (4.0) "multitasking" has the drawbacks :
- the UI of Android "multitasking" is misleading, showing suspended/closed softwares and not showing running softwares : it is just a list of recent used softwares;
- internal Android "multitasking" <> Linux desktop multitasking;
- Android "multitasking" agressively puts softwares in suspended mode (to save battery and CPU use);
- a software using services can be in background without limitations, but it can be cumbersome for the developer to separate the software in client+server, and the service cannot update the UI (user interface). Many Android softwares don't use services so they are suspended arbitrarily;
- to confirm : Android developer documentation assumes there is no swap memory available, so with limited RAM (128MB-1GB RAM nowadays) of Android devices, softwares are simply closed when the RAM is not enough.

iOS & WP7 "Fast App Switching" are a lot worser than Android "multitasking".
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.