Code example for NetworkInfo

Methods: getDetailedState

0
      } 
    } 
  } 
 
  private void handleNetworkStateChanged(NetworkInfo networkInfo) {
    NetworkInfo.DetailedState state = networkInfo.getDetailedState();
    if (state == NetworkInfo.DetailedState.FAILED){
      Log.d(TAG, "Detailed Network state failed");
      parent.gotError();
    } 
  } 
 
  private void handleChange(SupplicantState state, boolean hasError) {
    if (hasError || state == SupplicantState.INACTIVE){
      Log.d(TAG, "Found an error");
      parent.gotError();
    } 
  } 
}