{"id":13414582,"url":"https://github.com/xxv/android-lifecycle","last_synced_at":"2025-12-16T14:52:10.974Z","repository":{"id":16169004,"uuid":"18915233","full_name":"xxv/android-lifecycle","owner":"xxv","description":"A diagram of the Android Activity / Fragment lifecycle","archived":false,"fork":false,"pushed_at":"2021-08-19T00:44:07.000Z","size":3027,"stargazers_count":5262,"open_issues_count":27,"forks_count":682,"subscribers_count":263,"default_branch":"main","last_synced_at":"2024-07-31T21:53:06.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-18T14:26:22.000Z","updated_at":"2024-07-31T07:39:03.000Z","dependencies_parsed_at":"2022-09-16T11:32:15.300Z","dependency_job_id":null,"html_url":"https://github.com/xxv/android-lifecycle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xxv/android-lifecycle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxv%2Fandroid-lifecycle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxv%2Fandroid-lifecycle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxv%2Fandroid-lifecycle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxv%2Fandroid-lifecycle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxv","download_url":"https://codeload.github.com/xxv/android-lifecycle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxv%2Fandroid-lifecycle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27766561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:29.411Z","updated_at":"2025-12-16T14:52:10.959Z","avatar_url":"https://github.com/xxv.png","language":"Java","readme":"Complete Android Fragment \u0026 Activity Lifecycle\n----------------------------------------------\n\nAfter struggling with trying to figure out how various pieces fit together,\nI've done some research and put together the complete Android Activity/Fragment\nlifecycle chart. This has two parallel lifecycles (activities and fragments)\nwhich are organized vertically by time. Lifecycle stages will occur in the\nvertical order in which they're displayed, across activities and fragments. In\nthis way, you can see how your fragments interact with your activities.\n\nIf you see any discrepancies or errors in this diagram, please submit a pull\nrequest or contact [steve@staticfree.info](mailto:steve@staticfree.info).\n\n## Activity and Fragment Lifecycles\n\nVector versions suitable for printing: [PDF][] or [SVG][]\n\n![A Complete Android Fragment \u0026 Activity Lifecycle](complete_android_fragment_lifecycle.png)\n\n## Activity, Fragment and FragmentManager Lifecycle Integration\n\nVector versions suitable for printing [PDF2][] or [SVG2][]\n\n![A Integration Of Fragments into Activities via Fragment Manager](android-lifecycle-activity-to-fragments.png)\n\n### Some Notes\n\nThis intentionally leaves off user-triggered callbacks (such as\n`onOptionsItemSelected()`), focusing on the lifecycle stages that are triggered\nby the system, in order to keep the diagram more focused on the parts that are\nhard to follow.\n\nThe canonical format of the diagram is the [Dia][] file. It was then exported\nto SVG, hand-tweaked to fix font sizes, and imported into [Inkscape][] to do an\nSVG, PDF, and PNG render. I hope to find a better workflow for this going forward;\npatches always welcome.\n\n### License\n\nThis diagram (in all its various forms and renders) is licensed under the\n[Creative Commons BY-SA 4.0 license][CC-BY-SA]. If you would like it under a\ndifferent Creative Commons license, please contact me and we can figure\nsomething out.\n\n[Dia]: http://dia-installer.de/\n[Inkscape]: http://inkscape.org/\n[PDF]: complete_android_fragment_lifecycle.pdf\n[SVG]: complete_android_fragment_lifecycle.svg\n[CC-BY-SA]: https://creativecommons.org/licenses/by-sa/4.0/\n[PDF2]: android-lifecycle-activity-to-fragments.pdf\n[SVG2]: android-lifecycle-activity-to-fragments.svg\n","funding_links":[],"categories":["Java","Others","Fundamental"],"sub_categories":["Lifecycle"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxv%2Fandroid-lifecycle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxv%2Fandroid-lifecycle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxv%2Fandroid-lifecycle/lists"}