public void onServiceConnected(ComponentName className, IBinder binder) { service = ITwitterMonitor.Stub.asInterface(binder); try { service.registerAccount( prefs.getString("user", null), prefs.getString("password", null), listener); } catch (Throwable t) { Log.e("Patchy", "Exception in call to registerAccount()", t); goBlooey(t); } }
private synchronized void resetClient() { client = null; try { service.removeAccount(listener); service.registerAccount( prefs.getString("user", ""), prefs.getString("password", ""), listener); } catch (Throwable t) { Log.e("Patchy", "Exception in resetClient()", t); goBlooey(t); } }