News for hackers. Stuff that matters.
Re:Why your Android app doesn't need an exit button by JoeAltmaier on Monday May 17, 2010 @03:38PM (#1355274)
Its a noble goal - but Windows Mobile failed to make this work and I think Android will too. Applications claim resources. You need to be able to kill apps to free resources - think open file or locked database.
Re:Why your Android app doesn't need an exit button by gvb on Monday May 17, 2010 @04:10PM (#1355368)
Here is another viewpoint of how applications run and (don't) exit: http://android-developers.blogspot.com/2010/04/multitasking-...

"Once Android determines that it needs to remove a process, it does this brutally, simply force-killing it. The kernel can then immediately reclaim all resources needed by the process, without relying on that application being well written and responsive to a polite request to exit. Allowing the kernel to immediately reclaim application resources makes it a lot easier to avoid serious out of memory situations.

"If a user later returns to an application that's been killed, Android needs a way to re-launch it in the same state as it was last seen, to preserve the "all applications are running all of the time" experience. This is done by keeping track of the parts of the application the user is aware of (the Activities), and re-starting them with information about the last state they were seen in. This last state is generated each time the user leaves that part of the application, not when it is killed, so that the kernel can later freely kill it without depending on the application to respond correctly at that point."

It sounds like Android has addressed the locked resource issue. I'm not familiar with WinMo, but I suspect it tries to be cooperative and uncooperative (ornery or crashed) processes will cause the reclamation to fail.

Re:Why your Android app doesn't need an exit button by JoeAltmaier on Tuesday May 18, 2010 @08:58AM (#1357305)
Cool - they addresses it. But how does Android know when one app needs to be killed? Does any attempt to open an in-use resource kill the owning task?
Re:Why your Android app doesn't need an exit button by vetinari on Monday May 17, 2010 @04:10PM (#1355372)
This is not a problem on Android.

In Android, application is not equal to process. Application may start in one process, the process may get killed when the application is backgrounded, and later the application continues in another process, where it is restored.

http://developer.android.com/guide/topics/fundamentals.html#...

Re:Why your Android app doesn't need an exit button by ekiru on Monday May 17, 2010 @04:11PM (#1355375)
The article seems to be arguing that applications shouldn't keep resources or keep running when not visible without making it clear to the user and providing a convenient way to make the app release its resources and completely stop running.

The author is saying that most apps don't really need to keep doing things and using resources when not actively in use and visible(with GPS navigation and music players as two examples of apps that do); if an app doesn't need to keep using resources while not visible, it shouldn't need an explicit exit button because it should be releasing all of its resources when you leave the application with the back button.