my manifest
Use your Application class. either have a LiveData in it or a reference to a shared ViewModel. You can access Application using context.getApplicationContext() from NetworkChangeReceiver
Application
LiveData
ViewModel
context.getApplicationContext()
NetworkChangeReceiver