Code example for SupplicantState

Methods: equals

0
			mWifiInfo = mManWifi.getConnectionInfo();
 
			Log.i(TAG, mWifiInfo.getSupplicantState().toString());
 
			if (mWifiInfo.getSupplicantState()
					.equals(SupplicantState.COMPLETED)) {
 
				Log.i(TAG,
						"****** WIFI STATE IS CONNECTED ******" 
								+ mWifiInfo.getSSID());
 
				if (mWifiInfo.getSSID() != null) {
					 
					Log.i(TAG, "****** LAUCHING SERVICE WIFICONNECTOR ****** ");
					 
					context.startService(new Intent()
							.setComponent(new ComponentName(context
									.getPackageName(), WifiService.class
									.getName())));
				} 
Connect your IDE to all the code out there  Get Codota for Java