Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getrighhttt/handlingnetworkconnectivity
An application that demonstrates how to handle network connectivity in a few ways.
https://github.com/getrighhttt/handlingnetworkconnectivity
broadcast-reciever livedata networkconnection viewbinding-android
Last synced: 22 days ago
JSON representation
An application that demonstrates how to handle network connectivity in a few ways.
- Host: GitHub
- URL: https://github.com/getrighhttt/handlingnetworkconnectivity
- Owner: GetRighhttt
- Created: 2022-10-28T12:11:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T11:46:27.000Z (about 2 years ago)
- Last Synced: 2023-03-09T23:32:15.742Z (almost 2 years ago)
- Topics: broadcast-reciever, livedata, networkconnection, viewbinding-android
- Language: Kotlin
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HandlingNetworkConnectivity
### Description
App that dmeonstrates multiple ways of how to monitor and displa connectivity in android.
First, I demonstrate how with using a broadcast receiver. Secondly, I will show how we can
use live data and observe the changes made to connectivity that way. Both approaches are
pretty functoinal. Just depends on the use case in which you need to use them.I will say I believe that using a broadcast receiver is a better and more practical approach,
as Live Data has it's disadvantages.![2022-10-28](https://user-images.githubusercontent.com/105057858/198591131-cf9a9ab8-341e-4b4c-a271-65263ecbfa1d.png)
![2022-10-28 (2)](https://user-images.githubusercontent.com/105057858/198591124-d8697ef1-e3dc-4813-b17a-7e1c182eb8af.png)
![2022-10-28 (1)](https://user-images.githubusercontent.com/105057858/198591136-6bbc90e2-88f5-4d6b-b3ea-035ef789c92e.png)