@Override protected void onDestroy() { if (communicator != null) { communicator.sendMessage(new ExitMessage()); communicator.stop(); remoteViewCommunicator.stop(); } velocityTracker.recycle(); super.onDestroy(); }