Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why dont Android applications provide an "Exit" option?

Tags:

android

Is there something in the Android developer guidelines that disuades developers from providing the option to "exit" (stop running) an application from within the application itself?

I love multitasking and all but it's not clear to me why:

  • the vast majority of apps don't have their own Exit functions and hence just keep running forever
  • don't give you a choice about running when you turn on the phone - they just do by default

Both of these things lead to memory usage constantly increasing and your device running with this performance burden all of the time despite the fact that you may only want certain apps to run some of the time.

Am I missing something?

like image 771
Howiecamp Avatar asked Mar 13 '10 20:03

Howiecamp


2 Answers

Is there something in the Android developer guidelines that disuadea developers from providing the option to "exit" (stop running) an application from within the application itself?

Yes. It is generally not needed, just as it is generally not needed to restart a Web server because some user with a browser decided (s)he is done with a Web app.

the vast majority of apps don't have their own Exit functions and hence just keep running forever

They don't keep running forever. Android will close things up as needed.

don't give you a choice about running when you turn on the phone - they just do by default

Those developers aren't paying attention to me.

Both of these things lead to memory usage constantly increasing

Generally, it doesn't. If you find specific apps that do this, uninstall them.

and your device running with this performance burden all of the time

Generally, it doesn't. If you find specific apps that do this, uninstall them.

Also, this question is a duplicate of this one.

like image 63
CommonsWare Avatar answered Oct 13 '22 04:10

CommonsWare


"Both of these things lead to memory usage constantly increasing"

Which doesn't matter since Android apps are limited to a fixed amount of RAM. Freeing RAM won't give more RAM to other apps.

like image 20
Romain Guy Avatar answered Oct 13 '22 06:10

Romain Guy