meangene
Member
I've seen lots of comments on this forum about not being able to close an app and haven't seen anyone explain how memory is managed on Android devices so here's a quick explanation (sorry if it's redundant):
All Android apps are written in Java. Java, unlike other programming languages, does not require any coding to allocate or deallocate memory and handles all memory allocation/deallocation through a "feature" called automatic garbage collection. The garbage collector kicks in whenever an app no longer has any active threads pointing to it. By design, the garbage collector will not remove apps that are actively being used; but there may be a bit of system degradation while things are being cleaned up (usually a very fast process). This is not an error that the Android creators accidentally left out, it's a standard "feature" of Java.
As for the process killing apps out there, this programmer's opinion is that they are unnecessary and could possibly do more harm than good (especially if you kill the garbage collector task).
If you want a more indepth explanation, you can read about it here:
Understanding Automatic Garbage Collection — Developer.com
Cheers
All Android apps are written in Java. Java, unlike other programming languages, does not require any coding to allocate or deallocate memory and handles all memory allocation/deallocation through a "feature" called automatic garbage collection. The garbage collector kicks in whenever an app no longer has any active threads pointing to it. By design, the garbage collector will not remove apps that are actively being used; but there may be a bit of system degradation while things are being cleaned up (usually a very fast process). This is not an error that the Android creators accidentally left out, it's a standard "feature" of Java.
As for the process killing apps out there, this programmer's opinion is that they are unnecessary and could possibly do more harm than good (especially if you kill the garbage collector task).
If you want a more indepth explanation, you can read about it here:
Understanding Automatic Garbage Collection — Developer.com
Cheers