Application’s
Life Cycle
An unusual and fundamental feature of Android is
that an application process's lifetime is not directly controlled by the
application itself. Instead, it is determined by the system through a
combination of
1. Parts of the application that the system knows
are running,
2. How important these things are to the user, and
3. How much overall memory is available in the system?
Types
of processes
Active (foreground)
processes - Hosting applications with components currently interacting with the
user.
Visible (not foreground)
Processes - Visible, but inactive processes.
Started Service
Processes - Services don’t interact directly with the user eg : Media Player
Background Processes -
Processes hosting Activities that aren’t visible
Android will kill using
a last-seen-first-killed pat- tern
Least recently used
list.
Empty Processes to
improve overall system performance, Android often retains applications in
memory after they have reached the end of their lifetimes.
Cache to improve the start-up time of
app(Relaunch)
No comments:
Post a Comment