private void updateState() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); String[] available = cm.getTetherableIfaces(); String[] tethered = cm.getTetheredIfaces(); String[] errored = cm.getTetheringErroredIfaces(); updateState(available, tethered, errored); }