The code below is used to detect network connectivity. The scenario is the software connected to the phone\'s hotspot but the phone\'s cellular network doesn\'t switch on. T