@Override protected void onStop() { if (boundToService) { unbindService(serviceConnection); } Log.d("GameActivity", "Stop"); super.onStop(); }