Esempio n. 1
0
  @Override
  protected void onResume() {
    super.onResume();
    LedApplication.getConnectionObserver().start();
    LedApplication.tryConnect();

    if (mRestoreViewAfterConnect != null) setFragment(mRestoreViewAfterConnect);
    else replaceByScenesView();
  }
Esempio n. 2
0
 @Override
 protected void onUserLeaveHint() {
   super.onUserLeaveHint();
   LedApplication.getConnectionObserver().stop();
   LedApplication.getServerconnection().CloseConnection();
 }