Code example for SupplicantState

Methods: equals

0
	       	 
		          SupplicantState ss = (SupplicantState) intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE); 
		          int state = intent.getIntExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, 0);        
		 
		           //DISCONNECTED  
		          if(SupplicantState.DISCONNECTED.equals(ss)) {
		        	  voiceactivationservice.noficationMessage("NO WIFI - OUT OF RANGE");
		          } 
			 }//end if 
		 } 
 
		     
} 
Connect your IDE to all the code out there  Get Codota for Java