Monday, August 25, 2014

Application Life Cycle

Application Priority and Process states

Process State

Active Process:
  • Activities in the foreground
  • Broadcast receivers executing onReceive event handlers
  • Services executing onStart, onCreate, or onDestroy event handlers
  • Running Services that have been flagged to run in the foreground
Visible Process:
  • Activities are visible, but they aren’t in the foreground or responding to user events.
  • Activity is only partially obscured.
Started Service Process:
  • Processes hosting Services that have been started.
Background Process:
  • Processes hosting Activities that aren’t visible and that don’t have any running Services.
Empty Process:
  • To improve overall system performance, Android will often retain an application in memory after it has reached the end of its lifetime.

No comments:

Post a Comment