by snprbob86 · 16y ago · 0 comments
I'm a supporter of Android (I know many happy Android owners), but this post screams to me "Apple does the things they do for good reasons".
EDIT: Sheesh. I had read the article. I was referring to keeping these sorts of things out of the app store. I'm familiar with the task model of the Android SDK and understand that this isn't a problem with Android, it is a problem with the open ecosystem. Open ecosystems are a good thing sometimes, and they are a bad thing sometimes.
Additionally, the point of the post is that using the task killer is bad and that "Google does the things they do for good reasons". At no point does Apple even factor into the equation.
At the moment I think I prefer iOS 4's version of "almost-multitasking-sometimes", but we'll see how I feel after I get used to the 'droid way of doing things.
The idea of processes consuming resources is a mental model people developed on desktop OS's that they need to shed for Android. When each process is assumed to correctly serialize its state and can be killed at any time without consequence, the OS can keep the system perfectly snappy without the user having to worry about it.
This is a user education problem, not a technical problem. This is why android doesn't make it easy to see what processes are actually running.
It doesn't need doing as often as on my old G1, but it needs it. I don't know if that is because I am running cyanogen mod (5.0.8, which is based on 2.1) or what, but you can pry adk out of my cold dead hands. Maybe I have some buggy apps. But adk makes my phone usable.
Android doesn't seem as smart as it supposed to be, but I still like it.
This gives a basic overview of how application activities behave (see the diagram a few lines down):
http://developer.android.com/guide/topics/fundamentals.html#...
It is possible for a badly behaving application to create a thread which would continue to run whilst an activity is not visible.
Take this as a common example for an Android game app framework: http://www.helloandroid.com/tutorials/how-use-canvas-your-an...
Your app may need (implementation specific) to take explicit action (SurfaceView::surfaceDestroyed) to stop the rendering thread before being backgrounded,