@Override protected void onPostExecute(Exception result) { super.onPostExecute(result); if (result != null) { try { ecm.disconnect(); } catch (IOException e) { } } // Reload the fragment switchToFragment(currentFragment); updateConnectButton(); }
@Override protected void onProgressUpdate(String... values) { // update(); super.onProgressUpdate(values); }
@Override protected void onPreExecute() { // connectButton.setEnabled(false); super.onPreExecute(); }