package Ġir . ch ista . util Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . net . Connectivity Manager ĊĊ Ċ object ĠNetworks Ġ{ ĊĠ Ġval ĠContext . is Online ĊĠĠĠ Ġget () Ġ= ĊĠĠĠĠĠ Ġ( getSystem Service ( Context . CONNECT IVITY _ SERVICE ) Ġas ĠConnect ivity Manager ) ĊĠĠĠĠĠĠĠ Ġ. active Network Info ?. isConnected Ġ?: Ġfalse Ċ Ċ } Ċ