{"id":19007667,"url":"https://github.com/razaghimahdi/fall_detector","last_synced_at":"2026-05-16T06:35:00.742Z","repository":{"id":135576340,"uuid":"451962281","full_name":"razaghimahdi/Fall_Detector","owner":"razaghimahdi","description":"Fall detector, an app which notify you when your phone fell ","archived":false,"fork":false,"pushed_at":"2023-05-31T07:05:56.000Z","size":194,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T14:49:23.580Z","etag":null,"topics":["android","android-studio","background-service","forground-service","kotlin","kotlin-android","kotlin-coroutines","native-apps","notifications","sensor","sensors","service"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/razaghimahdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-01-25T16:49:41.000Z","updated_at":"2022-11-21T10:28:41.000Z","dependencies_parsed_at":"2024-11-08T18:45:17.851Z","dependency_job_id":"3a0531e7-f3ef-4095-b506-516c35ef3f04","html_url":"https://github.com/razaghimahdi/Fall_Detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/razaghimahdi/Fall_Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razaghimahdi%2FFall_Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razaghimahdi%2FFall_Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razaghimahdi%2FFall_Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razaghimahdi%2FFall_Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razaghimahdi","download_url":"https://codeload.github.com/razaghimahdi/Fall_Detector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razaghimahdi%2FFall_Detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","android-studio","background-service","forground-service","kotlin","kotlin-android","kotlin-coroutines","native-apps","notifications","sensor","sensors","service"],"created_at":"2024-11-08T18:39:02.449Z","updated_at":"2026-05-16T06:35:00.726Z","avatar_url":"https://github.com/razaghimahdi.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fall Detector\n\n## Developed by mahdi razzaghi ghaleh\n\n#### Fall detector, an app which notify you when your phone fell \n\n## Give a Star! ⭐\nIf you like or are using this project to learn or start your solution, please give it a star. Thanks!\n\n| Main | When detector service started | when detector stopped |when detector detect falling |\n| :---: | :---: | :---: | :---: |\n| ![](screenshots/1.jpg) | ![](screenshots/2.jpg)  | ![](screenshots/3.jpg) |![](screenshots/4.jpg) |\n\n\n### What tech and component has been used for this?\n**Services**  \n**Sensors** \n\n### What is Services?\nA Service is an application component that can perform long-running operations in the background.\nIt does not provide a user interface. \nOnce started, a service might continue running for some time, even after the user switches to another application. \nAdditionally, a component can bind to a service to interact with it and even perform interprocess communication (IPC).\nFor example, a service can handle network transactions, play music, perform file I/O, or interact with a content provider, all from the background.\n\n#### Types of Services:\n**Foreground**  \n**Background**  \n**Bound**  \n\n#### Foreground\nA foreground service performs some operation that is noticeable to the user. \nFor example, an audio app would use a foreground service to play an audio track. \nForeground services must display a Notification. \nForeground services continue running even when the user isn't interacting with the app.\nWhen you use a foreground service, you must display a notification so that users are actively aware that the service is running. \nThis notification cannot be dismissed unless the service is either stopped or removed from the foreground.\n\n#### Background\nA background service performs an operation that isn't directly noticed by the user. \nFor example, if an app used a service to compact its storage, that would usually be a background service.\n\n#### Bound\nA service is bound when an application component binds to it by calling bindService(). \nA bound service offers a client-server interface that allows components to interact with the service, send requests, \nreceive results, and even do so across processes with interprocess communication (IPC). \nA bound service runs only as long as another application component is bound to it. \nMultiple components can bind to the service at once, but when all of them unbind, the service is destroyed.\n\n### LifecycleService Or Service?\nLifecycleService has additional functionality,\nso it's preferred if you need that functionality.\nA LifecycleOwner allows other classes to subscribe to its lifecycle state.\nFor example, some component in your application could automatically tear itself down,\nfree up native memory, unregister listeners, etc. by subscribing to the Service's destroyed lifecycle stage.\nThen your Service code wouldn't have to worry about it.\nYou also have access to lifecycleScope in a LifecycleService,\nand that can be used to start coroutines that will automatically be cancelled when the Service is stopped.\nViewModel and LiveData are designed around the use of lifecycles,\nso you could theoretically use them with a LifecycleService,\nbut that would probably be counter-productive since they are intended for UI.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazaghimahdi%2Ffall_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazaghimahdi%2Ffall_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazaghimahdi%2Ffall_detector/lists"}