protected void onActivitiesDestroyed(){
  ApplicationStatus.unregisterApplicationStateListener(mApplicationStateListener);
  disconnect(false);
}

protected void onActivitiesDestroyed ( ) { ApplicationStatus . unregisterApplicationStateListener ( mApplicationStateListener ) ; disconnect ( false ) ; }
called when the main activity receives an ondestroy ( ) call .
