Skip to content

Instantly share code, notes, and snippets.

@galex
Created September 18, 2010 09:39
Show Gist options
  • Save galex/585528 to your computer and use it in GitHub Desktop.
Save galex/585528 to your computer and use it in GitHub Desktop.
// problem when closing the app, this one crashed without any reason
bindService(new Intent(this, PlayerService.class), this.playerServiceConnection, Context.BIND_AUTO_CREATE);
// solution
bindService(new Intent(this, PlayerService.class), this.playerServiceConnection, Context.BIND_DEBUG_UNBIND);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment