I am completely new to developing android apps. I want to have my app (constantly or maybe every few minutes) check in the background whether I am connected to a certain wifi network. If so, it should call a certain class. Unfortunately, there is not much of a code snippet I could provide as of now. Can any one help me to do this?