Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)