Skip to content

Instantly share code, notes, and snippets.

@mkrupal09
Created July 19, 2019 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrupal09/b0ab96304494ab6ad24594c4ca8eed0e to your computer and use it in GitHub Desktop.
Save mkrupal09/b0ab96304494ab6ad24594c4ca8eed0e to your computer and use it in GitHub Desktop.
1.How many type of process in android?
- Foreground Process
- Visible Process
- Service Process
- Cached Process
https://developer.android.com/guide/components/activities/process-lifecycle
2.Activity lifecycle key loops
There are three key loops you may be interested in monitoring within your activity
- Entire Lifetime -> oncreate - ondestroy
- Visible Lifetime - > onstart - onstop
- Foreground Lifetime -> onresume - onpause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment