Code example for IOException

Methods: printStackTrace

0
    } catch (IllegalStateException e) {
      e.printStackTrace();
      return; 
    } catch (IOException e) {
      // TODO Auto-generated catch block 
      e.printStackTrace();
      return; 
    } 
    try { 
      mediaPlayer.prepareAsync();
    } catch (IllegalStateException e) {
      // TODO Auto-generated catch block 
      e.printStackTrace();
      return; 
    } 
  } 
 
  public void stop() { 
    if( mediaPlayer == null ) return;
    try { 
      mediaPlayer.stop();