• Stars
    star
    5,263
  • Rank 7,853 (Top 0.2 %)
  • Language
    Java
  • Created over 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A diagram of the Android Activity / Fragment lifecycle

Complete Android Fragment & Activity Lifecycle

After struggling with trying to figure out how various pieces fit together, I've done some research and put together the complete Android Activity/Fragment lifecycle chart. This has two parallel lifecycles (activities and fragments) which are organized vertically by time. Lifecycle stages will occur in the vertical order in which they're displayed, across activities and fragments. In this way, you can see how your fragments interact with your activities.

If you see any discrepancies or errors in this diagram, please submit a pull request or contact [email protected].

Activity and Fragment Lifecycles

Vector versions suitable for printing: PDF or SVG

A Complete Android Fragment & Activity Lifecycle

Activity, Fragment and FragmentManager Lifecycle Integration

Vector versions suitable for printing PDF2 or SVG2

A Integration Of Fragments into Activities via Fragment Manager

Some Notes

This intentionally leaves off user-triggered callbacks (such as onOptionsItemSelected()), focusing on the lifecycle stages that are triggered by the system, in order to keep the diagram more focused on the parts that are hard to follow.

The canonical format of the diagram is the Dia file. It was then exported to SVG, hand-tweaked to fix font sizes, and imported into Inkscape to do an SVG, PDF, and PNG render. I hope to find a better workflow for this going forward; patches always welcome.

License

This diagram (in all its various forms and renders) is licensed under the Creative Commons BY-SA 4.0 license. If you would like it under a different Creative Commons license, please contact me and we can figure something out.

More Repositories

1

24hAnalogWidget

Android 12-at-the-top 24h Analog Widget and Wear watch face
Java
72
star
2

tracer

Communication Interface for Tracer MT-5
Python
61
star
3

Units

Android Units
Java
34
star
4

jsc3d

Automatically exported from code.google.com/p/jsc3d
HTML
31
star
5

darktable-git-annex

git-annex integration for darktable
Lua
22
star
6

openscad-boxmaker

OpenSCAD laser cut box maker
OpenSCAD
17
star
7

esphome-knob

OpenSCAD
14
star
8

mqtt_camera

An Android camera remote-controllable via MQTT
Java
13
star
9

SuperGenPass

Android SuperGenPass app
Java
13
star
10

robotfindskitten

Android robotfindskitten
Java
10
star
11

esp-box

parametric housing for an ESP8266-based D1 mini device
OpenSCAD
9
star
12

django-eventbrite

Eventbrite is written in Django. This imports Eventbrite data to *your* Django project.
Python
7
star
13

tinymuseum

fabrication of The Mยตseum
KiCad Layout
5
star
14

fuckedometer

The only thing you need to watch for the upcoming presidential election
CSS
4
star
15

fiber-optic-driver

An easy-to-use system to illuminate plastic fiber optic bundles with individually-addressible RGB LEDs
OpenSCAD
3
star
16

adb_scripts

Android adb shell scripts for working with packages
Shell
3
star
17

log-tick

Python
3
star
18

clip2url

From your clipboard to a public web URL in 1s
Shell
3
star
19

ding

Ding! Your process is done.
Python
3
star
20

modular-vco

Modular Synthesizer: VCO
3
star
21

rfid_front_door

RFID/NFC tag front door scanner
Java
3
star
22

modular-housing

OpenSCAD
3
star
23

bcb_photobooth

BarCampBoston Photobooth
Python
2
star
24

jumbo-button

a very large wifi-connected button for Home Assistant
OpenSCAD
2
star
25

AndroidNumberPickerBug

Java
2
star
26

multilayer-edgelit-sign

C++
1
star
27

wifi_motion

ESP8266-based wifi motion detector using MQTT
Arduino
1
star
28

motion_nightlight

A motion-detecting, battery-powered, RGBW nightlight
OpenSCAD
1
star
29

health-tracker

Java
1
star
30

puzzletools

Python
1
star
31

zproject

Easily get to your project/work directory (oh-my-zsh plugin)
Shell
1
star
32

arctic-spa

Interface to Arctic Spa hot tubs
Python
1
star
33

oshw-jewelry

1
star
34

giant-moon

nesC
1
star