public static void registerErrorListener(ErrorListener l){
  errorListeners.add(l);
}

public static void registerErrorListener ( ErrorListener l ) { errorListeners . add ( l ) ; }
register a callback for when the player service encounters an exception that affects music playback that the user should be alerted of . don ' t forget to unregister this listener when you ' re done , otherwise you ' ll probably leak an activity or something bad .
