{"id":23536460,"url":"https://github.com/jreategui07/activitylifecycleapp_android","last_synced_at":"2026-04-13T12:31:13.675Z","repository":{"id":268301666,"uuid":"903898283","full_name":"jreategui07/ActivityLifecycleApp_Android","owner":"jreategui07","description":"This Android application demonstrates the Activity Lifecycle in Android applications. It logs and showcases the execution of lifecycle events such as onCreate, onStart, onResume, onPause, onStop, onRestart, and onDestroy.","archived":false,"fork":false,"pushed_at":"2024-12-16T04:21:56.000Z","size":940,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T23:08:09.528Z","etag":null,"topics":["android","intent","java","jetpack-compose","kotlin","lifecycle","xml"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/jreategui07.png","metadata":{"files":{"readme":"README-es.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-15T20:49:06.000Z","updated_at":"2024-12-16T04:25:16.000Z","dependencies_parsed_at":"2024-12-15T22:27:52.178Z","dependency_job_id":"78525b0a-c98d-47bd-bc18-4b325958ff94","html_url":"https://github.com/jreategui07/ActivityLifecycleApp_Android","commit_stats":null,"previous_names":["jreategui07/activitylifecycleapp_android"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jreategui07/ActivityLifecycleApp_Android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreategui07%2FActivityLifecycleApp_Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreategui07%2FActivityLifecycleApp_Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreategui07%2FActivityLifecycleApp_Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreategui07%2FActivityLifecycleApp_Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jreategui07","download_url":"https://codeload.github.com/jreategui07/ActivityLifecycleApp_Android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreategui07%2FActivityLifecycleApp_Android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","intent","java","jetpack-compose","kotlin","lifecycle","xml"],"created_at":"2024-12-26T02:28:49.064Z","updated_at":"2026-04-13T12:31:13.655Z","avatar_url":"https://github.com/jreategui07.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Activity Lifecycle Demo App\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/logo/android-logo.png\" width=\"120\" /\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/logo/java-logo.png\" width=\"90\" /\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/logo/kotlin-logo.png\" width=\"410\" /\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/logo/jetpack-compose-logo.png\" width=\"180\" /\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Descripción\n\nEsta aplicación de Android demuestra el Ciclo de Vida de una Actividad en aplicaciones Android. Muestra la ejecución de los eventos del ciclo de vida, como onCreate, onStart, onResume, onPause, onStop, onRestart y onDestroy. El proyecto está implementado utilizando Java, Kotlin con XML y Jetpack Compose.\n\n## Características\n\n- **Java**: Para demostrar el ciclo de vida de una actividad utilizando Java + XML.\n- **Kotlin**: Para demostrar el ciclo de vida de una actividad utilizando Kotlin + XML.\n- **Jetpack Compose**: Para demostrar el ciclo de vida de una actividad utilizando Compose.\n- **Intent**: Para navegar entre actividades.\n\n## Configuraciones necesarias\n\n- No se requiere configuración adicional.\n\n## Eventos del Ciclo de Vida y Ejemplos\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cstrong\u003eEvento\u003c/strong\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cstrong\u003eDescripción\u003c/strong\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cstrong\u003eCasos de uso común\u003c/strong\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onCreate()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando se crea la actividad. Inicializa la interfaz de usuario, las estructuras de datos y otros componentes.\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003eInicializar la interfaz de usuario (UI).\u003c/li\u003e\n            \u003cli\u003eConfigurar ViewModels, adaptadores y bindings.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onStart()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando la actividad se vuelve visible para el usuario pero aún no es interactiva.\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003eCargar datos ligeros.\u003c/li\u003e\n            \u003cli\u003eIniciar animaciones.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onResume()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando la actividad está lista para interactuar con el usuario (en primer plano).\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003eIniciar solicitudes a la API.\u003c/li\u003e\n            \u003cli\u003eReanudar animaciones, reproducción o listeners de sensores.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onPause()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando la actividad ya no está en primer plano pero aún es parcialmente visible. Se utiliza para guardar el estado y liberar recursos temporales.\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003ePausar animaciones o la reproducción de video.\u003c/li\u003e\n            \u003cli\u003eGuardar cambios no guardados.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onStop()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando la actividad ya no es visible para el usuario.\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003eLiberar recursos como conexiones de red.\u003c/li\u003e\n            \u003cli\u003eGuardar el estado de la aplicación.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onRestart()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando la actividad se reinicia después de haberse detenido.\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003eReinicializar componentes o refrescar los datos si es necesario.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n        onDestroy()\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Se llama cuando se destruye la actividad. Es el último método ejecutado.\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003cul\u003e\n            \u003cli\u003eLiberar memoria y recursos.\u003c/li\u003e\n            \u003cli\u003eLimpiar listeners, hilos o ViewModels.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Demostración\n\nA continuación, algunas capturas de pantalla de la aplicación:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/main_view.png\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/java_xml_view.png\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/kotlin_xml_view.png\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"./assets/compose_view.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\u003cimg src=\"./assets/lifecycle-java-log.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\u003cimg src=\"./assets/lifecycle-kotlin-log.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd colspan=\"4\"\u003e\u003cimg src=\"./assets/lifecycle-compose-log.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## License [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThe MIT License (MIT)\n\n\n- **Copyright (c) 2024 Jonathan Reátegui**\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n## Notes\n\n- This README is also available in Spanish  [here](README-es.md)\n- Este README también está disponible en español  [aquí](README-es.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjreategui07%2Factivitylifecycleapp_android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjreategui07%2Factivitylifecycleapp_android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjreategui07%2Factivitylifecycleapp_android/lists"}