Android, Kotlin, Network, Broadcast Receiver.
status fun Context.isConnectedOrConnecting(): Boolean { val connMgr = getSystemService(Context.CONNECTIVITY_SERVICE) as android.net.ConnectivityManager val networkInfo = connMgr.activeNetworkInfo return (networkInfo != null) && networkInfo.isConnectedOrConnecting } fun Context.isGpsEnabled():