0

i have made an android application in which i need user's gps and internet connection. Now if the user has not switched any of the above on, then i show a message to the user to switch on their gps and internet.

Once the user reads this message and switches his gps and internet on, i need to reload my activity. To do this i need to capture the event when the user has switched on his gps/wifi and then reload my activity.

How do i achieve this?

Thank you in advance.

user590849
  • 10,883
  • 25
  • 77
  • 121

1 Answers1

3

BroadCastReceiver & NetworkManager will solve your problem. This will help you.. Detect 3G or Wifi Network restoration

Community
  • 1
  • 1
Mak
  • 1,017
  • 1
  • 11
  • 29