What I wanted to happen is that when I click a button at the same time when my app was not connected to wifi I want to be notified that my app was not connected then, when I receive data from wiifi and I click the button there is nothing to happened.