I have developed a remote device android application in which basically I have 3 states ON, OFF, and Network Searching. In the case of forgetting wifi network, I want device wifi to be turned OFF not in a Searching state. If anyone has a solution please provide soon.